summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorchrisjbillington2019-10-30 11:38:17 -0400
committerchrisjbillington2019-10-30 11:38:17 -0400
commit424c8e09a375da55f6a926a25c3394c04fe164cb (patch)
treefb30295342e4af5e9c846a41f97fef10cc0668aa /PKGBUILD
parent56297d7f58e5cddf86b856010089032680a3b57b (diff)
downloadaur-424c8e09a375da55f6a926a25c3394c04fe164cb.tar.gz
Include session files in session package instead of shell theme package.
Delete empty directories from packages
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2d17437b364a..ac3ca2b85097 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,8 +8,8 @@ pkgname=(yaru-sound-theme-git
yaru-gnome-shell-theme-git
yaru-icon-theme-git
yaru-session-git)
-pkgver=19.10.4.r25.g00aaee95
-pkgrel=1
+pkgver=19.10.4.r34.g2d2cf90a
+pkgrel=2
pkgdesc="Yaru default ubuntu theme"
arch=(any)
url="https://github.com/ubuntu/yaru"
@@ -37,14 +37,16 @@ _delete_all_from_pkgdir_except() {
rm -r "${pkgdir}"/usr/share/themes/Yaru{-light,{,-dark}/{gtk-*,index.theme}}
fi
if [[ "$1" != "gnome-shell-theme" ]]; then
- rm -r "${pkgdir}"/usr/share/{gnome-shell,themes/Yaru{,-dark}/gnome-shell}
+ rm -r "${pkgdir}"/usr/share/themes/Yaru{,-dark}/gnome-shell
fi
if [[ "$1" != "icon-theme" ]]; then
rm -r "${pkgdir}"/usr/share/icons
fi
if [[ "$1" != "session" ]]; then
- rm -r "${pkgdir}"/usr/share/{glib-2.0,xsessions,wayland-sessions}
+ rm -r "${pkgdir}"/usr/share/{gnome-shell,glib-2.0,xsessions,wayland-sessions}
fi
+ # Delete remaining empty directories:
+ find "${pkgdir}" -type d -empty -delete
}
package_yaru-sound-theme-git() {
@@ -94,4 +96,4 @@ package_yaru-session-git() {
DESTDIR="$pkgdir" ninja -C build install 2>&1 >> install.log
_delete_all_from_pkgdir_except "session"
-} \ No newline at end of file
+}