summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5160be52e431f716a9b1868945c63067eaec350e (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libxcrypt-git
pkgver=4.4.33.r8.g90c30b5
pkgrel=1
pkgdesc="Library for one-way hashing of passwords"
arch=('i686' 'x86_64')
url="https://github.com/besser82/libxcrypt/"
license=('LGPL')
depends=('glibc')
makedepends=('git')
provides=("libxcrypt=$pkgver" 'libcrypt.so')
conflicts=('libxcrypt')
options=('staticlibs')
source=("git+https://github.com/besser82/libxcrypt.git")
sha256sums=('SKIP')


pkgver() {
  cd "libxcrypt"

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

build() {
  cd "libxcrypt"

  ./autogen.sh
  ./configure \
    --prefix="/usr" \
    --disable-failure-tokens \
    --enable-hashes=strong,glibc \
    --enable-obsolete-api=no
  make
}

check() {
  cd "libxcrypt"

  make check
}

package() {
  cd "libxcrypt"

  make DESTDIR="$pkgdir" install
}