diff options
author | Sergio Conde Gómez | 2016-06-27 19:53:11 +0200 |
---|---|---|
committer | Sergio Conde Gómez | 2016-06-27 19:53:11 +0200 |
commit | e3c2f3287e9830d90fa46250cd114323b921e579 (patch) | |
tree | aef9baad4e261eb4aff8ba249307f75497856169 | |
download | aur-e3c2f3287e9830d90fa46250cd114323b921e579.tar.gz |
newpkg: mfcuk-git r54.5acc9f4-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c444bd3f82b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mfcuk-git + pkgdesc = MiFare Classic Universal toolKit (MFCUK) + pkgver = r54.5acc9f4 + pkgrel = 1 + url = https://github.com/nfc-tools/mfcuk + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = automake + makedepends = autoconf + depends = libnfc + source = mfcuk-git::git+https://github.com/nfc-tools/mfcuk.git + sha256sums = SKIP + +pkgname = mfcuk-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8a55acb8624f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Sergio Conde <skgsergio@gmail.com> + +pkgname=mfcuk-git +pkgver=r54.5acc9f4 +pkgrel=1 +pkgdesc="MiFare Classic Universal toolKit (MFCUK)" +arch=('i686' 'x86_64') +url='https://github.com/nfc-tools/mfcuk' +license=('GPL') +depends=('libnfc') +makedepends=('git' 'automake' 'autoconf') +source=("$pkgname::git+https://github.com/nfc-tools/mfcuk.git") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$pkgname" + sed -i 's|./data/tmpls_fingerprints|/usr/share/mfcuk|' src/mfcuk_finger.c +} + + +build() { + cd "$pkgname" + autoreconf -vis + ./configure --prefix=/usr + make +} + +package() { + cd "$pkgname" + + make DESTDIR="$pkgdir" install + + install -Dm644 src/data/tmpls_fingerprints/* -t "$pkgdir"/usr/share/mfcuk +} |