diff options
author | Gustavo Reis | 2018-10-27 22:55:48 -0300 |
---|---|---|
committer | Gustavo Reis | 2018-10-27 22:55:48 -0300 |
commit | 91fe935e3a93fa82d93420107d40609bbf76ac0b (patch) | |
tree | 214dcd752a789e3d6e00a83a73a6c0f5aed6d76b /PKGBUILD | |
parent | 37dafcdf495ae5f43faa15d10c0e7440182c4427 (diff) | |
download | aur-91fe935e3a93fa82d93420107d40609bbf76ac0b.tar.gz |
[200~penultimate
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 13 insertions, 29 deletions
@@ -1,45 +1,29 @@ # Contributor: Daniel Miranda (dmiranda) +# Contributor: Fabio ‘Lolix’ Loli <lolix at disroot dot org> # Maintainer: Gustavo Costa (gusbemacbe) -_gitname=suru-plus pkgname=suru-plus-git pkgver=20.3.0 -pkgrel=3 +pkgrel=4 pkgdesc="Suru++ 20 — A cyberpunk, elegant, futuristic and modern third-party icons theme!" arch=('any') -url="https://github.com/gusbemacbe/${_gitname}" +url="https://github.com/gusbemacbe/${pkgname/-git/}" license=('GPL3') changelog=CHANGELOG makedepends=('git') -options=('!strip') -conflicts=(${_gitname}) +conflicts=(${pkgname/-git/}) +provides=(${pkgname/-git/}) source=("git+${url}.git") sha256sums=('SKIP') -# pkgver() -# { -# cd ${_gitname} -# # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -# } +pkgver() +{ + cd ${pkgname/-git/} + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' +} package() { - # Installing the icons theme - install -d ${pkgdir}/usr/share/icons - - # Copying to the /usr/share/icons/ and changing name to "Suru++ 20" - cp -r "${srcdir}"/suru-plus "${pkgdir}"/usr/share/icons/Suru++\ 20 - - find ${pkgdir}/usr -type f -exec chmod 644 {} \; - find ${pkgdir}/usr -type d -exec chmod 755 {} \; - - # Removing unncessary .directory files - find ${pkgdir}/usr -type f -name '.directory' -delete - - # Deleting unneeded files - rm -r "$pkgdir"/usr/share/icons/Suru++\ 20/.git - rm -r "$pkgdir"/usr/share/icons/Suru++\ 20/.gitignore - rm -r "$pkgdir"/usr/share/icons/Suru++\ 20/*.md - rm -R "$pkgdir"/usr/share/icons/Suru++\ 20/images - rm -R "$pkgdir"/usr/share/icons/Suru++\ 20/templates -} + install -d $pkgdir/usr/share/icons/Suru++\ 20 + cp -r ${pkgname/-git/}/* $pkgdir/usr/share/icons/Suru++\ 20 +}
\ No newline at end of file |