36 lines
978 B
Bash
36 lines
978 B
Bash
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
# then please put 'unknown'.
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
|
pkgname=flex
|
|
pkgver=2.6.4
|
|
pkgrel=1
|
|
pkgdesc="A tool for generating text-scanning programs"
|
|
arch=('x86_64')
|
|
url="https://github.com/westes/flex"
|
|
license=('custom')
|
|
groups=('base-devel')
|
|
depends=('glibc' 'm4' 'bash')
|
|
source=(https://github.com/westes/flex/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
|
sha256sums=(e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995)
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
${CONFIGURE}
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
ln -sv flex ${pkgdir}/usr/bin/lex
|
|
ln -sv flex.1 ${pkgdir}/usr/share/man/man1/lex.1
|
|
}
|