summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70dc43a445ad96a6b7301f4b80460d2fbeead34e (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
# Former maintainer: Dan Beste <dan.ray.beste@gmail.com>
# Contributor: Lex Black <autumn-wind at web dot de>

pkgname=libscrypt-git
pkgver=1.22.r0.g60e585c
pkgrel=1
pkgdesc="Linux scrypt shared library"
arch=('i686' 'x86_64')
url="https://github.com/technion/libscrypt"
license=('BSD')
depends=('glibc')
makedepends=('git')
provides=("libscrypt=$pkgver")
conflicts=('libscrypt')
source=("git+https://github.com/technion/libscrypt.git")
sha256sums=('SKIP')


pkgver() {
  cd "libscrypt"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libscrypt"

  make
}

check() {
  cd "libscrypt"

  make check
}

package() {
  cd "libscrypt"

  make DESTDIR="$pkgdir" PREFIX="/usr" install
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libscrypt"
}