2023-06-05 14:33:25 +00:00
|
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=postmarketos-artwork
|
2024-02-07 12:28:26 +00:00
|
|
|
pkgver=5
|
2024-04-07 21:21:22 +00:00
|
|
|
pkgrel=1
|
2019-11-07 23:01:00 +00:00
|
|
|
pkgdesc="Meta package for the postmarketOS artwork"
|
2018-01-09 13:01:27 +00:00
|
|
|
url="https://postmarketos.org/"
|
|
|
|
arch="noarch"
|
2019-11-07 23:01:00 +00:00
|
|
|
license="CC-BY-SA-4.0"
|
2024-02-07 12:28:26 +00:00
|
|
|
_hash="f28dd5fef287c970f50ca49bc44814ee1e3b229d"
|
2024-04-07 21:21:22 +00:00
|
|
|
source="postmarketos-artwork-$_hash.tar.gz::https://gitlab.com/postmarketOS/artwork/-/archive/$_hash/artwork-$_hash.tar.gz
|
|
|
|
10_pmOS-wallpaper.gschema.override
|
|
|
|
postmarketos-gnome.xml
|
|
|
|
"
|
2019-11-07 23:01:00 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-wallpapers
|
|
|
|
$pkgname-wallpapers-extra:wallpapers_extra
|
2024-04-07 21:21:22 +00:00
|
|
|
$pkgname-wallpapers-gnome:wallpapers_gnome
|
2019-11-07 23:01:00 +00:00
|
|
|
$pkgname-icons
|
|
|
|
$pkgname-sounds
|
|
|
|
"
|
2024-04-07 21:21:22 +00:00
|
|
|
makedepends="
|
|
|
|
imagemagick
|
|
|
|
imagemagick-jpeg
|
|
|
|
"
|
|
|
|
options="!check pmb:cross-native"
|
2023-12-09 17:57:10 +00:00
|
|
|
builddir="$srcdir"/artwork-$_hash
|
2018-01-09 13:01:27 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"
|
|
|
|
}
|
2019-11-07 23:01:00 +00:00
|
|
|
|
|
|
|
wallpapers() {
|
|
|
|
pkgdesc="Wallpapers for postmarketOS"
|
2024-04-07 21:21:22 +00:00
|
|
|
|
2024-02-07 12:28:26 +00:00
|
|
|
mkdir -p "$subpkgdir"/usr/share/wallpapers
|
2024-04-07 21:21:22 +00:00
|
|
|
|
|
|
|
# To avoid complexity, we only package the most recent wallpaper.
|
|
|
|
# Checklist for changing the wallpaper:
|
|
|
|
# - Add the new wallpaper here: https://postmarketos.org/wallpapers
|
|
|
|
# - Adjust the path in the "cp" line below
|
|
|
|
# - If paths inside the wallpaper dir (e.g. 2024/meadow) are different,
|
|
|
|
# then adjust them here:
|
|
|
|
# - postmarketos.jpg symlink/conversion below
|
|
|
|
# - postmarketos-gnome.xml
|
|
|
|
# - 10_pmOS-wallpaper.gschema.override
|
2024-02-07 12:28:26 +00:00
|
|
|
cp -r "$builddir"/wallpapers/2024/meadow \
|
|
|
|
"$subpkgdir"/usr/share/wallpapers/postmarketos
|
2024-04-07 21:21:22 +00:00
|
|
|
|
|
|
|
# /usr/share/wallpapers/postmarketos.jpg should always point to the
|
|
|
|
# current wallpaper so we don't break configs
|
|
|
|
convert "$subpkgdir"/usr/share/wallpapers/postmarketos/contents/images/2707x2707.png \
|
|
|
|
-format jpeg \
|
|
|
|
"$subpkgdir"/usr/share/wallpapers/postmarketos.jpg
|
2019-11-07 23:01:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
wallpapers_extra() {
|
|
|
|
pkgdesc="Additional Wallpapers for postmarketOS"
|
2024-04-07 21:21:22 +00:00
|
|
|
|
2019-11-07 23:01:00 +00:00
|
|
|
mkdir -p "$subpkgdir"/usr/share/wallpapers/
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/wallpapers/extra/* \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/wallpapers/
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/wallpapers/logo/postmarketos.jpg \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/wallpapers/postmarketos-light.jpg
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/wallpapers/logo/logo_dark.jpg \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/wallpapers/logo_dark.jpg
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/wallpapers/logo/pmos-grass-800x480.jpg \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/wallpapers/pmos-grass-800x480.jpg
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/wallpapers/logo/pmos-grass.jpg \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/wallpapers/pmos-grass.jpg
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/wallpapers/logo/pmos.jpg \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/wallpapers/pmos.jpg
|
|
|
|
}
|
|
|
|
|
2024-04-07 21:21:22 +00:00
|
|
|
wallpapers_gnome() {
|
|
|
|
pkgdesc="Wallpaper configuration for GNOME-based UIs"
|
|
|
|
install_if="postmarketos-artwork-wallpapers=$pkgver-r$pkgrel postmarketos-base-ui-gnome"
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/postmarketos-gnome.xml \
|
|
|
|
-t "$subpkgdir"/usr/share/gnome-background-properties/
|
|
|
|
install -Dm644 "$srcdir"/10_pmOS-wallpaper.gschema.override \
|
|
|
|
-t "$subpkgdir"/usr/share/glib-2.0/schemas
|
|
|
|
}
|
|
|
|
|
2019-11-07 23:01:00 +00:00
|
|
|
icons() {
|
|
|
|
pkgdesc="Icons for postmarketOS"
|
2024-04-07 21:21:22 +00:00
|
|
|
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/logo/logo.svg \
|
2022-01-20 19:42:14 +00:00
|
|
|
"$subpkgdir"/usr/share/pixmaps/postmarketos-logo.svg
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/logo/logo-phone.svg \
|
2022-01-20 19:42:14 +00:00
|
|
|
"$subpkgdir"/usr/share/pixmaps/postmarketos-logo-phone.svg
|
2019-11-07 23:01:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sounds() {
|
|
|
|
pkgdesc="Sounds for postmarketOS"
|
2024-04-07 21:21:22 +00:00
|
|
|
|
2019-11-07 23:01:00 +00:00
|
|
|
mkdir -p "$subpkgdir"/usr/share/sounds/postmarketOS/
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/tones/battery_low.mid \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/sounds/postmarketOS/
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/tones/no_signal.mid \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/sounds/postmarketOS/
|
2023-12-09 17:57:10 +00:00
|
|
|
install -Dm644 "$builddir"/tones/startup.mid \
|
2019-11-07 23:01:00 +00:00
|
|
|
"$subpkgdir"/usr/share/sounds/postmarketOS/
|
|
|
|
}
|
|
|
|
|
2023-06-05 14:33:25 +00:00
|
|
|
sha512sums="
|
2024-02-07 12:28:26 +00:00
|
|
|
cef2326a28dbd597f3d679329aaac17031bf1fdc60f634bc25cf20b23e62028961c5f228570df824615b21616a18ab2fd290a770cfd4f3ca1d929ac552a34ea8 postmarketos-artwork-f28dd5fef287c970f50ca49bc44814ee1e3b229d.tar.gz
|
2024-04-07 21:21:22 +00:00
|
|
|
6464a9246d1c9cac5cd2f55345f1659e872377f941160132c897c8c08955bb61083fec6daa8993a34bffdcc900a29f7ae6438fe86a476242447ddccf4e937d06 10_pmOS-wallpaper.gschema.override
|
|
|
|
0bcdfb41adb02b657ee0f9938d134d551fa8c3ef166e8a7895908d1dd355119143088641196505b3e2018896ae39a5392032de114aa602f4911b3aeadddd7b60 postmarketos-gnome.xml
|
2023-06-05 14:33:25 +00:00
|
|
|
"
|