forked from archlinux/svntogit-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
archrelease: copy trunk to extra-x86_64
git-svn-id: file:///srv/repos/svn-packages/svn@313980 eb2447ed-0c53-47e4-bac8-5bc4a241df78
- Loading branch information
eworm
committed
Jan 3, 2018
1 parent
4610c61
commit af22b89
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org> | ||
|
||
pkgname=argon2 | ||
pkgver=20171227 | ||
pkgrel=2 | ||
pkgdesc='A password-hashing function (reference C implementation)' | ||
arch=('x86_64') | ||
url='https://github.com/P-H-C/phc-winner-argon2' | ||
license=('Apache' 'custom:CC0') | ||
depends=('glibc') | ||
install=argon2.install | ||
source=("https://github.com/P-H-C/phc-winner-argon2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz" | ||
'libargon2.pc') | ||
sha256sums=('eaea0172c1f4ee4550d1b6c9ce01aab8d1ab66b4207776aa67991eb5872fdcd8' | ||
'4189ce6c183319ceaf2c4ec96facd424deeaa9e2819efb7511893bcf3ef5c836') | ||
|
||
prepare() { | ||
cd "$srcdir/phc-winner-$pkgname-$pkgver" | ||
|
||
# Copy and prepare custom pkg-config file | ||
cp "${srcdir}/libargon2.pc" libargon2.pc | ||
sed -i -e "s/@UPSTREAM_VER@/${pkgver}/" libargon2.pc | ||
} | ||
|
||
build() { | ||
cd "$srcdir/phc-winner-$pkgname-$pkgver" | ||
|
||
make | ||
} | ||
|
||
check() { | ||
cd "$srcdir/phc-winner-$pkgname-$pkgver" | ||
|
||
make test | ||
} | ||
|
||
package() { | ||
cd "$srcdir/phc-winner-$pkgname-$pkgver" | ||
|
||
make DESTDIR="$pkgdir" install | ||
|
||
install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/argon2/LICENSE" | ||
|
||
install -D -m0644 libargon2.pc "${pkgdir}/usr/lib/pkgconfig/libargon2.pc" | ||
} | ||
|
||
# vim:set ts=2 sw=2 et: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
post_upgrade() { | ||
# clean up upstream soname mess | ||
rm -f usr/lib/libargon2.so.0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
prefix=/usr | ||
exec_prefix=${prefix} | ||
libdir=${prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: libargon2 | ||
Description: Development libraries for libargon2 | ||
Version: @UPSTREAM_VER@ | ||
Libs: -L${libdir} -largon2 -lrt -ldl | ||
Cflags: | ||
URL: https://github.com/P-H-C/phc-winner-argon2 |