summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 474d2701a3ee5e095f4e285c4d890281eacca584 (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=python-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' 'python')
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
  python setup.py build
}

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

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