diff options
author | gaelic | 2016-03-21 08:44:00 +0100 |
---|---|---|
committer | gaelic | 2016-03-21 08:44:00 +0100 |
commit | 9f5b1382cf38131c8f5dcbd485d246e12eb55997 (patch) | |
tree | 35ccd2916ec3d9eebf64108d6fcfde69bd06f8aa | |
parent | 194cfab3f207813b970fd81895c55d10b1664c41 (diff) | |
download | aur-9f5b1382cf38131c8f5dcbd485d246e12eb55997.tar.gz |
package cleanup, thx @TrialnError
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 21 insertions, 13 deletions
@@ -1,13 +1,15 @@ +# Generated by mksrcinfo v8 +# Mon Mar 21 07:43:18 UTC 2016 pkgbase = paper-icon-theme-git pkgdesc = Paper is an icon theme for GTK based desktops and fits perfectly the paper-gtk-theme - pkgver = 0.r2.aca8802 + pkgver = ae82c98 pkgrel = 1 url = https://github.com/snwh/paper-icon-theme - arch = i686 - arch = x86_64 + arch = any license = CC BY-SA 4.0 makedepends = git - depends = librsvg + makedepends = automake + depends = gtk-update-icon-cache provides = paper-icon-theme source = paper-icon-theme-git::git+https://github.com/snwh/paper-icon-theme.git md5sums = SKIP @@ -1,12 +1,12 @@ pkgname=paper-icon-theme-git -pkgver=0.r2.aca8802 +pkgver=ae82c98 pkgrel=1 pkgdesc="Paper is an icon theme for GTK based desktops and fits perfectly the paper-gtk-theme" -arch=('i686' 'x86_64') +arch=(any) url="https://github.com/snwh/paper-icon-theme" license=('CC BY-SA 4.0') -depends=('librsvg') -makedepends=('git') +depends=('gtk-update-icon-cache') +makedepends=('git' 'automake') provides=('paper-icon-theme') source=("$pkgname"::'git+https://github.com/snwh/paper-icon-theme.git') # Because the sources are not static, skip Git checksum: @@ -15,12 +15,18 @@ md5sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" # Use the tag of the last commit - printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --always | sed 's|-|.|g' + #printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$pkgname" + ./autogen.sh --prefix=/usr + make } package() { - cd "$srcdir/$pkgname/Paper" - install -d -m 755 "$pkgdir"/usr/share/icons/Paper - rm -rf {.git,.gitignore,CONTRIBUTORS,COPYING,CREDITS,LICENSE.txt,README.md} - cp -r . "$pkgdir"/usr/share/icons/Paper/ + cd "$srcdir/$pkgname" + make DESTDIR="$pkgdir" install + rm -f "${pkgdir}/usr/share/icons/gnome/icon-theme.cache" } |