summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1407de9222739e9bb4fb2c30a7c0e6c8248d32d9 (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
# Contributor: Moritz Lipp <mlq@pwmt.org>

pkgname=python2-libfiu
_pkgname=libfiu
pkgver=1.00
pkgrel=1
pkgdesc="userspace fault injection framework"
arch=('i686' 'x86_64')
url="https://blitiri.com.ar/p/libfiu/"
license=('custom')
depends=('libfiu' 'python2')
makedepends=('make' 'gcc')
source=("https://blitiri.com.ar/p/$_pkgname/files/$pkgver/$_pkgname-$pkgver.tar.gz")
md5sums=('faa9822b0ec346978531a089517cf500')

build() {
  cd $srcdir/$_pkgname-$pkgver/bindings/python
  python2 setup.py build
}

package() {
  cd $srcdir/$_pkgname-$pkgver/bindings/python
  python2 setup.py install --root="${pkgdir}" --optimize=1

  # Install LICENSE
  cd $srcdir/$_pkgname-$pkgver
  install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}