diff options
author | Santiago Torres | 2018-07-27 18:23:42 -0400 |
---|---|---|
committer | Santiago Torres | 2018-07-27 18:23:42 -0400 |
commit | 3fcc2c479e2f381fce556a0e1d160e93f1a77f0b (patch) | |
tree | 19af8b90b5671588cb9169d98280072ab90f0be5 | |
parent | 45c9febd4da7d18eac7511726144c0a3178f39cc (diff) | |
download | aur-3fcc2c479e2f381fce556a0e1d160e93f1a77f0b.tar.gz |
FIX: fix license.
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -7,36 +7,37 @@ arch=('i686' 'x86_64') conflicts=("argon2") provides=("argon2") url="https://github.com/P-H-C/phc-winner-argon2" -license=('CC-0') +license=('custom:CC-0') depends=('glibc') makedepends=('git') source=('git://github.com/P-H-C/phc-winner-argon2.git') sha256sums=('SKIP') pkgver() { - cd $_gitname + cd "$_gitname" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { - cd $_gitname + cd "$_gitname" sed -i "/^#/d;s/\/@HOST_MULTIARCH@//g;s/@UPSTREAM_VER@/$pkgver/g" libargon2.pc sed -i '1d' libargon2.pc } build() { - cd $_gitname + cd "$_gitname" make } check() { - cd $_gitname + cd "$_gitname" make test } package() { - cd $_gitname + cd "$_gitname" make DESTDIR="$pkgdir" install - install -Dm644 libargon2.pc $pkgdir/usr/lib/pkgconfig/libargon2.pc + install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm0644 libargon2.pc $pkgdir/usr/lib/pkgconfig/libargon2.pc } |