summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2be217953cfb4210f48dc1d52671354c6d750951 (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
# Maintainer: goll <adrian.goll+aur[at]gmail>

pkgname=mfoc-git
pkgver=0.10.7.r38.gba072f1
pkgrel=1
pkgdesc="Mifare Classic Offline Cracker"
arch=('i686' 'x86_64')
url="https://github.com/nfc-tools/mfoc"
license=('GPL2')
depends=('libnfc>=1.7.0')
makedepends=('git')
conflicts=('mfoc')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')


pkgver() {
	cd "${pkgname}"
	git describe --tags | sed 's/^mfoc-//;s/\([^-]*-g\)/r\1/;s/-/./g'

}

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

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