summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdd0b8f7e8a017a5d1034e86b631475d6a7043ee (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
pkgname=python-nfc
pkgver=r95.1cae8e4
pkgrel=1
pkgdesc='Python bindings for libnfc'
arch=('i686' 'x86_64')
license=(BSD)
url="https://github.com/xantares/nfc-bindings"
makedepends=('cmake' 'swig')
depends=('python' 'libnfc')
source=("git+https://github.com/xantares/nfc-bindings.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/nfc-bindings"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build()
{
  cd "$srcdir"/nfc-bindings
  mkdir -p build && pushd build
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr ..
}

package()
{
  cd "$srcdir"/nfc-bindings/build
  make DESTDIR="$pkgdir" install
}