summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1832af4a5f3d85186ba3050df57758272f10afb0 (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
46
47
48
# Maintainer: Dan Beste <dan.ray.beste@gmail.com>
# Contributor: Lex Black <autumn-wind at web dot de>

pkgname='libscrypt-git'
_gitname='libscrypt'
pkgver=1.21.r5.g164525d
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 755 "${pkgdir}/usr/share/licenses/${pkgname}/"
  install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim: ts=2 sw=2 et: