summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa4fe254b68d99115caeb4606ce1ef74828e134d (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
# Maintainer:  Misaka13514 <Misaka13514 at gmail dot com>
# Contributor: Antoine Viallon <antoine+aur@lesviallon.fr>

pkgname=mfoc-hardnested-git
pkgver=0.10.9.r171.a600743
pkgrel=3
pkgdesc="A fork of mfoc integrating hardnested code from the proxmark"
arch=('i686' 'x86_64')
url="https://github.com/nfc-tools/mfoc-hardnested"
license=('GPL-2.0-only')
depends=('libnfc>=1.7.0' 'xz' 'glibc')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
options=(!ccache)

pkgver() {
    cd "$pkgname"
    printf "%s.r%s.%s" \
        "$(grep AC_INIT configure.ac | sed 's/.*\[\([0-9.]\+\)\].*/\1/')" \
        "$(git rev-list --count HEAD)" \
        "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"
    autoreconf -vis
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname"
    make DESTDIR="${pkgdir}" install
}