From c49ac1cc8096350b85b354a1064c62e42d5f26bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Sat, 9 Dec 2023 18:57:10 +0100 Subject: [PATCH] main/postmarketos-artwork: set buildddir (MR 4614) This allows to build the package locally with pmbootstrap build --src And is less repetition --- main/postmarketos-artwork/APKBUILD | 31 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/main/postmarketos-artwork/APKBUILD b/main/postmarketos-artwork/APKBUILD index 2f144ee66..d130f960b 100644 --- a/main/postmarketos-artwork/APKBUILD +++ b/main/postmarketos-artwork/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Oliver Smith pkgname=postmarketos-artwork pkgver=3 -pkgrel=0 +pkgrel=1 pkgdesc="Meta package for the postmarketOS artwork" url="https://postmarketos.org/" arch="noarch" @@ -16,6 +16,7 @@ subpackages=" $pkgname-sounds " options="!check" +builddir="$srcdir"/artwork-$_hash package() { mkdir -p "$pkgdir" @@ -24,51 +25,51 @@ package() { wallpapers() { pkgdesc="Wallpapers for postmarketOS" mkdir -p "$subpkgdir"/usr/share/wallpapers/ - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/logo/pmos-grass-square.jpg \ + install -Dm644 "$builddir"/wallpapers/logo/pmos-grass-square.jpg \ "$subpkgdir"/usr/share/wallpapers/postmarketos.jpg } wallpapers_extra() { pkgdesc="Additional Wallpapers for postmarketOS" mkdir -p "$subpkgdir"/usr/share/wallpapers/ - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/extra/* \ + install -Dm644 "$builddir"/wallpapers/extra/* \ "$subpkgdir"/usr/share/wallpapers/ - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/logo/postmarketos.jpg \ + install -Dm644 "$builddir"/wallpapers/logo/postmarketos.jpg \ "$subpkgdir"/usr/share/wallpapers/postmarketos-light.jpg - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/logo/logo_dark.jpg \ + install -Dm644 "$builddir"/wallpapers/logo/logo_dark.jpg \ "$subpkgdir"/usr/share/wallpapers/logo_dark.jpg - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/logo/pmos-grass-800x480.jpg \ + install -Dm644 "$builddir"/wallpapers/logo/pmos-grass-800x480.jpg \ "$subpkgdir"/usr/share/wallpapers/pmos-grass-800x480.jpg - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/logo/pmos-grass.jpg \ + install -Dm644 "$builddir"/wallpapers/logo/pmos-grass.jpg \ "$subpkgdir"/usr/share/wallpapers/pmos-grass.jpg - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/logo/pmos.jpg \ + install -Dm644 "$builddir"/wallpapers/logo/pmos.jpg \ "$subpkgdir"/usr/share/wallpapers/pmos.jpg } wallpapers_gnome() { pkgdesc="postmarketOS wallpapers for GNOME" - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/gnome/pmos-light.jpg \ + install -Dm644 "$builddir"/wallpapers/gnome/pmos-light.jpg \ "$subpkgdir"/usr/share/wallpapers/postmarketos-gnome-light.jpg - install -Dm644 "$srcdir"/artwork-$_hash/wallpapers/gnome/pmos-dark.jpg \ + install -Dm644 "$builddir"/wallpapers/gnome/pmos-dark.jpg \ "$subpkgdir"/usr/share/wallpapers/postmarketos-gnome-dark.jpg } icons() { pkgdesc="Icons for postmarketOS" - install -Dm644 "$srcdir"/artwork-$_hash/logo/logo.svg \ + install -Dm644 "$builddir"/logo/logo.svg \ "$subpkgdir"/usr/share/pixmaps/postmarketos-logo.svg - install -Dm644 "$srcdir"/artwork-$_hash/logo/logo-phone.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 "$srcdir"/artwork-$_hash/tones/battery_low.mid \ + install -Dm644 "$builddir"/tones/battery_low.mid \ "$subpkgdir"/usr/share/sounds/postmarketOS/ - install -Dm644 "$srcdir"/artwork-$_hash/tones/no_signal.mid \ + install -Dm644 "$builddir"/tones/no_signal.mid \ "$subpkgdir"/usr/share/sounds/postmarketOS/ - install -Dm644 "$srcdir"/artwork-$_hash/tones/startup.mid \ + install -Dm644 "$builddir"/tones/startup.mid \ "$subpkgdir"/usr/share/sounds/postmarketOS/ }