summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5f7f557d99b555b13f3961466ac15ebfc5e8ad5 (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
# Maintainer:XXXXXXXXXXXXXXXXXXXXXXXXXXX
pkgname=pam_nfc-git
pkgver=20150407
pkgrel=2
pkgdesc="nfc for pam, git version"
arch=(i686 x86_64)
license=('GPL')
#url=""
depends=('libnfc')
makedepends=('git')
source=(git+https://github.com/nfc-tools/pam_nfc.git)
#backup=('')
#provides=('')
#conflicts=('')
#replaces=('')
md5sums=('SKIP')

pkgver() {
    # Identify latest version.
    cd "$srcdir/pam_nfc"
    git log -1 --format="%cd" --date=short | sed 's|-||g'
}

build() {
    # Compiling lib_nfc.
    cd $srcdir/pam_nfc
    autoreconf -vis
    LDFLAGS="" CFLAGS="" ./configure                     \
        --prefix=/usr               \
	--sysconfdir=/etc           \
	--with-pam-dir=/usr/lib/security
        make -j1
}

package(){
    # Removing unwanted source dir.
    rm -r $startdir/pam_nfc

    # Moving everything to pkg/.
    cd $srcdir/pam_nfc
    make DESTDIR=$pkgdir install
}