summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMoritz Lipp2015-06-15 20:17:10 +0200
committerMoritz Lipp2015-06-15 20:17:10 +0200
commit8a5d64b856ea734c6785998b6b52cc469ee8a7aa (patch)
treed9601af440bb7f83550a3d0d0daba08f963f85f3 /PKGBUILD
downloadaur-8a5d64b856ea734c6785998b6b52cc469ee8a7aa.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b6e5aed7693
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Contributor: Moritz Lipp <mlq@pwmt.org>
+
+pkgname=lib32-libfiu
+_pkgname=libfiu
+pkgver=0.93
+pkgrel=1
+pkgdesc="userspace fault injection framework"
+arch=('x86_64')
+url="https://blitiri.com.ar/p/libfiu/"
+license=('custom')
+depends=('libfiu')
+makedepends=('make' 'gcc')
+source=("https://blitiri.com.ar/p/$_pkgname/files/$pkgver/$_pkgname-$pkgver.tar.gz"
+ "$pkgname-$pkgver.patch")
+md5sums=('8d8126a05a0fd7e833544c6a73deb256'
+ '91b295e1fbf4bd0a2bf73bb97a6ed91b')
+install=$pkgname-$pkgver.install
+
+prepare() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ patch -p1 < $startdir/$pkgname-$pkgver.patch
+}
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ CFLAGS=-m32 LDFLAGS=-m32 \
+ make PREFIX=$pkgdir/usr
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ CFLAGS=-m32 LDFLAGS=-m32 \
+ make PREFIX=$pkgdir/usr libfiu_install
+
+ # Fix paths
+ sed -e "s|${pkgdir}||g" -e "s|libdir\(.*\)lib|libdir\1lib32|g" -i $pkgdir/usr/lib/pkgconfig/libfiu.pc
+ mv $pkgdir/usr/lib $pkgdir/usr/lib32
+
+ # Cleanup
+ rm -r $pkgdir/usr/include
+ rm -r $pkgdir/usr/share/man
+
+ # Install LICENSE
+ install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}