diff options
author | Yiyao Yu | 2020-11-05 21:06:58 -0500 |
---|---|---|
committer | Yiyao Yu | 2020-11-05 21:06:58 -0500 |
commit | 9a972d9bdbef00fcf05a65771fb495edd7d1ea43 (patch) | |
tree | 5ae171d5ee4ef8e0561d4c8e551e414f9498fa47 /PKGBUILD | |
parent | fb956b1dd0b5dc02d0b3187120ab3182e99f7f9f (diff) | |
download | aur-surfn-icons-git.tar.gz |
1:9.7.1.r31.gb45e8c22-1: full rewrite, added license, VCS versioning
Diffstat (limited to 'PKGBUILD')
-rw-r--r--[-rwxr-xr-x] | PKGBUILD | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD index 986285ab49da..3db9daf29003 100755..100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,19 +1,35 @@ -# Maintainer: Erik Dubois <erik.dubois@gmail.com> +# Maintainer: Yiyao Yu <yuydevel at protonmail dot com> +# Contributor: Erik Dubois <erik.dubois@gmail.com> pkgname=surfn-icons-git -pkgver=20.5 -pkgrel=3 -_destname="/usr/share/icons/" -pkgdesc="Surfn is a colourful icon theme." +_pkgname=Surfn +pkgver=9.7.1.r31.gb45e8c22 +pkgrel=1 +epoch=1 +pkgdesc='Surfn, a colourful icon theme' arch=('any') -url="https://github.com/erikdubois/Surfn" -license=('Attribution-NonCommercial-ShareAlike 4.0 International Public License') +url='https://github.com/erikdubois/Surfn' +license=('custom:CC BY-NC-SA 4.0') makedepends=('git') options=(!strip !emptydirs) source=('Surfn::git+https://github.com/erikdubois/Surfn.git') sha256sums=('SKIP') +pkgver() { + cd "${_pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + package() { - find ${srcdir}/Surfn/surfn-icons -type f -name "*.sh" -exec chmod 644 '{}' \; - install -dm 755 ${pkgdir}${_destname} - cp -r ${srcdir}/Surfn/surfn-icons/* ${pkgdir}${_destname} -}
\ No newline at end of file + cd "${srcdir}/${_pkgname}/surfn-icons" + + # Delete all build scripts + find . -type f -name "*.sh" -delete + + install -dm 755 "${pkgdir}/usr/share/icons/" + cp -r * "${pkgdir}/usr/share/icons/" + + install -Dm 644 "Surfn/LICENSE.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set et ts=2 sw=2 tw=79: |