jobcore/argon2/PKGBUILD

47 lines
1.4 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
2023-04-27 19:13:53 +02:00
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=argon2
pkgver=20190702
2024-07-25 13:06:08 +02:00
pkgrel=06
2022-03-20 13:19:37 +01:00
pkgdesc='A password-hashing function (reference C implementation)'
url='https://github.com/P-H-C/phc-winner-argon2'
depends=('glibc')
provides=('libargon2.so')
source=("https://github.com/P-H-C/phc-winner-argon2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
build() {
cd "$srcdir/phc-winner-$pkgname-$pkgver"
make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib'
}
check() {
cd "$srcdir/phc-winner-$pkgname-$pkgver"
make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib' test
}
package() {
cd "$srcdir/phc-winner-$pkgname-$pkgver"
make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib' DESTDIR="$pkgdir" install
install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/argon2/LICENSE"
}
2023-04-27 19:13:53 +02:00
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
license=('Apache' 'custom:CC0')
2024-07-25 13:06:08 +02:00
sha256sums=(daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c) # argon2-20190702.tar.gz
2022-03-20 13:19:37 +01:00
2024-07-25 13:06:08 +02:00
## f0a94b7b3d24dd8e7daad6e0d8b161284a79d554068a5710b44398d6199267cf argon2-20190702-06-x86_64.pkg.tar.lz
2023-04-27 19:13:53 +02:00