summaryrefslogtreecommitdiff
path: root/libre-testing/flex/PKGBUILD
diff options
context:
space:
mode:
authorBruno Cichon <ebrasca@librepanther.com>2018-10-02 00:52:16 +0200
committerBruno Cichon <ebrasca@librepanther.com>2018-10-02 00:52:16 +0200
commit7201d68c2089f4e83126bcfc72e0658ce920a084 (patch)
tree606328683e0a12304967f4166fd6bd544564d450 /libre-testing/flex/PKGBUILD
parent7b0e23aa952d001065f3f2432e4a6c57ac581b5c (diff)
downloadabslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.tar.gz
abslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.tar.bz2
abslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.zip
Add some base-devel packages for ppc64le
Diffstat (limited to 'libre-testing/flex/PKGBUILD')
-rw-r--r--libre-testing/flex/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/libre-testing/flex/PKGBUILD b/libre-testing/flex/PKGBUILD
new file mode 100644
index 000000000..df37cb065
--- /dev/null
+++ b/libre-testing/flex/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=flex
+pkgver=2.6.4
+pkgrel=1
+pkgdesc="A tool for generating text-scanning programs"
+arch=('x86_64' 'ppc64le')
+url="https://github.com/westes/flex"
+license=('custom')
+groups=('base-devel')
+depends=('glibc' 'm4' 'sh')
+makedepends=('help2man')
+source=("https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz")
+md5sums=('2882e3179748cc9f9c23ec593d6adc8d')
+
+build() {
+ cd "$pkgname-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+
+ # cxx_restart fails - https://github.com/westes/flex/issues/98
+ make -k check || true
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ ln -s flex "${pkgdir}/usr/bin/lex"
+
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}