diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | korla-icon-theme.install | 14 |
3 files changed, 36 insertions, 13 deletions
@@ -1,11 +1,11 @@ pkgbase = korla-icon-theme pkgdesc = Korla icon theme suitable for every desktop environment, dark and light versions pkgver = 1.0.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/bikass/korla + install = korla-icon-theme.install arch = any license = GPL3 - makedepends = git depends = gtk-update-icon-cache optdepends = hicolor-icon-theme: fallback Freedesktop.org Hicolor icon theme optdepends = breeze-icons: fallback Breeze icon theme @@ -2,27 +2,36 @@ pkgname=korla-icon-theme pkgver=1.0.3 -pkgrel=1 +pkgrel=2 pkgdesc="Korla icon theme suitable for every desktop environment, dark and light versions" arch=("any") url="https://github.com/bikass/korla" license=("GPL3") depends=("gtk-update-icon-cache") -makedepends=("git") -optdepends=("hicolor-icon-theme: fallback Freedesktop.org Hicolor icon theme" +optdepends=( + "hicolor-icon-theme: fallback Freedesktop.org Hicolor icon theme" "breeze-icons: fallback Breeze icon theme" "gnome-icon-theme: fallback Gnome icon theme") +install="$pkgname.install" source=("https://github.com/bikass/korla/archive/v$pkgver.tar.gz") md5sums=("a52a1b62ed2dbed2223ea0ec41a97370") -package() { - mkdir -p "$pkgdir/usr/share/icons/" +_iconpath=usr/share/icons - cp -drf --no-preserve=mode,ownership "$srcdir/korla-$pkgver/korla" "$pkgdir/usr/share/icons/korla" - cp -drf --no-preserve=mode,ownership "$srcdir/korla-$pkgver/korla-light" "$pkgdir/usr/share/icons/korla-light" -} +package() { + mkdir -p "$pkgdir/$_iconpath" + mkdir -p "$pkgdir/usr/share/doc/$pkgname" + mkdir -p "$pkgdir/usr/share/licenses/$pkgname" -post_install() { - gtk-update-icon-cache -f -t "/usr/share/icons/korla/" - gtk-update-icon-cache -f -t "/usr/share/icons/korla-light/" + cd "$srcdir/korla-$pkgver" + cp -drf --no-preserve=mode,ownership "korla" "$pkgdir/$_iconpath/korla" + cp -drf --no-preserve=mode,ownership "korla-light" "$pkgdir/$_iconpath/korla-light" + cp -drf --no-preserve=mode,ownership "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md" + + cd "$pkgdir/$_iconpath" + mv "korla/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + rm -f "korla/create-new-icon-theme.cache.sh" + rm -f "korla-light/create-new-icon-theme.cache.sh" + rm -f "korla-light/LICENSE" } diff --git a/korla-icon-theme.install b/korla-icon-theme.install new file mode 100644 index 000000000000..e3e460d00470 --- /dev/null +++ b/korla-icon-theme.install @@ -0,0 +1,14 @@ +_iconpath=usr/share/icons + +_gtk_icon_cache() { + gtk-update-icon-cache -f -t "/$_iconpath/korla/" + gtk-update-icon-cache -f -t "/$_iconpath/korla-light/" +} + +post_install() { + _gtk_icon_cache +} + +post_upgrade() { + _gtk_icon_cache +} |