62 lines
1.6 KiB
Bash
62 lines
1.6 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=flex
|
|
pkgver=2.6.4
|
|
pkgrel=05
|
|
pkgdesc="A tool for generating text-scanning programs"
|
|
url="https://github.com/westes/flex"
|
|
groups=( jobbot )
|
|
depends=('glibc' 'm4' 'sh')
|
|
makedepends=('help2man')
|
|
source=("https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz"{,.sig}
|
|
"flex-pie.patch")
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
patch -p1 -i "$srcdir"/flex-pie.patch
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
./configure --prefix=/usr
|
|
# prevent excessive overlinking due to libtool
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
|
|
}
|
|
|
|
check() {
|
|
make -k check -C $pkgname-$pkgver
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('custom')
|
|
|
|
validpgpkeys=('56C67868E93390AA1039AD1CE4B29C8D64885307') # Will Estes
|
|
|
|
sha256sums=(e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995 # flex-2.6.4.tar.gz
|
|
c61ccc11286e1eb2ceeb0f0a8f8437e86f1e41840991566351f438de7eb5a9a2 #flex-2.6.4.tar.gz.sig
|
|
20f3cce6b0ea6ab67a902a46b89c292b959994dedcbe6ee5d187f9bba1408b0e) # flex-pie.patch
|
|
|
|
## 498e3bee60a27ed486cda045de2a8981f3ecd0cfbebd0b297db47226342ca3bb flex-2.6.4-05-x86_64.pkg.tar.lz
|
|
|
|
|