-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD
executable file
·42 lines (34 loc) · 1.12 KB
/
PKGBUILD
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 153768 2015-12-20 11:17:56Z alucryd $
# Maintainer: Maxime Gauduin <[email protected]>
# Contributor: Denommus <[email protected]>
# Contributor: Bill Fraser <[email protected]>
# Contributor: Felipe Contreras <[email protected]>
# x32 Maintainer: Fantix King <fantix.king at gmail.com>
pkgname=libx32-flex
pkgver=2.6.0
pkgrel=1.1
pkgdesc='A tool for generating text-scanning programs (x32 ABI)'
arch=('x86_64')
url='http://flex.sourceforge.net'
license=('custom')
depends=('flex' 'libx32-glibc')
source=("http://downloads.sourceforge.net/sourceforge/flex/flex-${pkgver}.tar.bz2")
sha256sums=('24e611ef5a4703a191012f80c1027dc9d12555183ce0ecd46f3636e587e9b8e9')
build() {
cd flex-${pkgver}
export CC='gcc -mx32'
export CXX='g++ -mx32'
export PKG_CONFIG_PATH='/usr/libx32/pkgconfig'
./configure \
--prefix='/usr' \
--libdir='/usr/libx32'
make
}
package() {
cd flex-${pkgver}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
install -dm 755 "${pkgdir}"/usr/share/licenses
ln -s flex "${pkgdir}"/usr/share/licenses/libx32-flex
}
# vim: ts=2 sw=2 et: