blob: 7243a5689f5ed51c163c09738c4806621128f272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Dan Beste <dan.ray.beste@gmail.com>
pkgname='libscrypt-git'
gitname='libscrypt'
pkgver=1.21.r2.gf2b7923
pkgrel=1
pkgdesc='Shared library that implements scrypt() functionality - a replacement for bcrypt()'
arch=('i686' 'x86_64')
url='https://github.com/technion/libscrypt'
license=('BSD')
makedepends=('git')
provides=("${gitname}")
conflicts=("${gitname}")
source=('git+https://github.com/technion/libscrypt.git')
sha256sums=('SKIP')
pkgver() {
cd "${gitname}"
git describe --long \
| sed 's/\([^-]*-g\)/r\1/;s/-/./g' \
| sed 's/v//'
}
build() {
cd "${gitname}"
CFLAGS="${CFLAGS} -fPIC"
make
}
check() {
cd "${gitname}"
make check
}
package() {
cd "${gitname}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -D -m 644 \
LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|