pmaports/main/postmarketos-artwork/APKBUILD
Pablo Correa Gómez f8f7228621
main/postmarketos-artwork: upgrade and install GNOME XMLs (MR 4614)
This allows GNOME Settings to display our wallpapers. And most
remarkably, it allows people to switch back to the original wallpaper
if they ever happen to change it.

[ci:skip-build]: already built successfully in CI
2023-12-10 15:14:40 +01:00

82 lines
3 KiB
Text

# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=postmarketos-artwork
pkgver=4
pkgrel=0
pkgdesc="Meta package for the postmarketOS artwork"
url="https://postmarketos.org/"
arch="noarch"
license="CC-BY-SA-4.0"
_hash="9657eb69b2918e83bf0eb06170cc173b84727cb5"
source="postmarketos-artwork-$_hash.tar.gz::https://gitlab.com/postmarketOS/artwork/-/archive/$_hash/artwork-$_hash.tar.gz"
subpackages="
$pkgname-wallpapers
$pkgname-wallpapers-extra:wallpapers_extra
$pkgname-wallpapers-gnome:wallpapers_gnome
$pkgname-icons
$pkgname-sounds
"
options="!check"
builddir="$srcdir"/artwork-$_hash
package() {
mkdir -p "$pkgdir"
}
wallpapers() {
pkgdesc="Wallpapers for postmarketOS"
mkdir -p "$subpkgdir"/usr/share/wallpapers/
install -Dm644 "$builddir"/wallpapers/logo/pmos-grass-square.jpg \
"$subpkgdir"/usr/share/wallpapers/postmarketos.jpg
install -Dm644 "$builddir"/wallpapers/logo/pmos-grass.xml \
"$subpkgdir"/usr/share/gnome-background-properties/postmarketos-grass.xml
}
wallpapers_extra() {
pkgdesc="Additional Wallpapers for postmarketOS"
mkdir -p "$subpkgdir"/usr/share/wallpapers/
install -Dm644 "$builddir"/wallpapers/extra/* \
"$subpkgdir"/usr/share/wallpapers/
install -Dm644 "$builddir"/wallpapers/logo/postmarketos.jpg \
"$subpkgdir"/usr/share/wallpapers/postmarketos-light.jpg
install -Dm644 "$builddir"/wallpapers/logo/logo_dark.jpg \
"$subpkgdir"/usr/share/wallpapers/logo_dark.jpg
install -Dm644 "$builddir"/wallpapers/logo/pmos-grass-800x480.jpg \
"$subpkgdir"/usr/share/wallpapers/pmos-grass-800x480.jpg
install -Dm644 "$builddir"/wallpapers/logo/pmos-grass.jpg \
"$subpkgdir"/usr/share/wallpapers/pmos-grass.jpg
install -Dm644 "$builddir"/wallpapers/logo/pmos.jpg \
"$subpkgdir"/usr/share/wallpapers/pmos.jpg
}
wallpapers_gnome() {
pkgdesc="postmarketOS wallpapers for GNOME"
install -Dm644 "$builddir"/wallpapers/gnome/pmos-light.jpg \
"$subpkgdir"/usr/share/wallpapers/postmarketos-gnome-light.jpg
install -Dm644 "$builddir"/wallpapers/gnome/pmos-dark.jpg \
"$subpkgdir"/usr/share/wallpapers/postmarketos-gnome-dark.jpg
install -Dm644 "$builddir"/wallpapers/gnome/pmos.xml \
"$subpkgdir"/usr/share/gnome-background-properties/postmarketos-gnome.xml
}
icons() {
pkgdesc="Icons for postmarketOS"
install -Dm644 "$builddir"/logo/logo.svg \
"$subpkgdir"/usr/share/pixmaps/postmarketos-logo.svg
install -Dm644 "$builddir"/logo/logo-phone.svg \
"$subpkgdir"/usr/share/pixmaps/postmarketos-logo-phone.svg
}
sounds() {
pkgdesc="Sounds for postmarketOS"
mkdir -p "$subpkgdir"/usr/share/sounds/postmarketOS/
install -Dm644 "$builddir"/tones/battery_low.mid \
"$subpkgdir"/usr/share/sounds/postmarketOS/
install -Dm644 "$builddir"/tones/no_signal.mid \
"$subpkgdir"/usr/share/sounds/postmarketOS/
install -Dm644 "$builddir"/tones/startup.mid \
"$subpkgdir"/usr/share/sounds/postmarketOS/
}
sha512sums="
17cc39e6ed3e95d9e50c257d9fced448d10f872dc69e0913f2295b1ac679ac3d8d0d5a7aba7b4f99500adedbdc0565944f2d8201ec966568d0db1d16bfffbaa0 postmarketos-artwork-9657eb69b2918e83bf0eb06170cc173b84727cb5.tar.gz
"