Commit 30c9673b authored by Lisa's avatar Lisa

lib32-flex: update to 2.6.1, remove old files.

parent 48651dd2
......@@ -4,8 +4,8 @@
_pkgbasename=flex
pkgname=lib32-$_pkgbasename
pkgver=2.5.39
pkgrel=2
pkgver=2.6.1
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
arch=('x86_64')
url="http://flex.sourceforge.net"
......@@ -13,12 +13,8 @@ license=('custom')
groups=('base-devel')
depends=('lib32-glibc' 'm4' 'sh' $_pkgbasename=$pkgver)
options=('libtool' 'staticlibs')
source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
flex-2.5.37-no-bison.patch
lex.sh)
sha256sums=('add2b55f3bc38cb512b48fad7d72f43b11ef244487ff25fc00aabec1e32b617f'
'5ee23f97533c991b82e2aadc06d4682d7d05d99ee2abaf1ef9a82225ba9d0858'
'9d03016a7c4ae1adb051f50f94407b3d7dee9d55924b5c1904261c9f0c1f86f6')
source=(https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.xz)
sha256sums=('2c7a412c1640e094cb058d9b2fe39d450186e09574bebb7aa28f783e3799103f')
build() {
export CC="gcc -m32"
......@@ -28,8 +24,6 @@ build() {
cd $srcdir/$_pkgbasename-$pkgver
patch -Np1 -i $srcdir/flex-2.5.37-no-bison.patch
./configure --prefix=/usr --libdir=/usr/lib32 \
--mandir=/usr/share/man --infodir=/usr/share/info
make
......@@ -41,7 +35,15 @@ check() {
}
package() {
cd $srcdir/$_pkgbasename-$pkgver
cd $srcdir/$_pkgbasename-$pkgver/src
# ** DIRTY HACK
# This package is missing shared libraries, but still
# expect to install them. We create some empty files
# to make the install phase succeed and then delete
# them as they are all invalid anyway.
touch .libs/libfl.so.2.0.0
touch .libs/libfl_pic.so.2.0.0
make prefix=$pkgdir/usr \
mandir=$pkgdir/usr/share/man \
......@@ -49,6 +51,12 @@ package() {
libdir=$pkgdir/usr/lib32 \
install
rm "${pkgdir}/usr/lib32/libfl.so"
rm "${pkgdir}/usr/lib32/libfl.so.2"
rm "${pkgdir}/usr/lib32/libfl.so.2.0.0"
rm "${pkgdir}/usr/lib32/libfl_pic.so"
rm "${pkgdir}/usr/lib32/libfl_pic.so.2"
rm "${pkgdir}/usr/lib32/libfl_pic.so.2.0.0"
rm -rf "${pkgdir}"/usr/{include,share,bin}
mkdir -p $pkgdir/usr/share/licenses
......
--- flex-2.5.37/tests/Makefile.am 2012-10-11 04:49:17.517445461 +0300
+++ flex-2.5.37/tests/Makefile.am 2012-10-11 04:49:58.504048817 +0300
@@ -35,9 +35,6 @@
test-rescan-nr \
test-basic-nr \
test-basic-r \
- test-bison-yylloc \
- test-bison-yylval \
- test-bison-nr \
test-multiple-scanners-nr \
test-multiple-scanners-r \
test-header-nr \
@@ -84,9 +81,6 @@
test-rescan-nr \
test-basic-nr \
test-basic-r \
- test-bison-yylloc \
- test-bison-yylval \
- test-bison-nr \
test-multiple-scanners-nr \
test-multiple-scanners-r \
test-header-nr \
--- flex-2.5.37/tests/Makefile.in 2012-10-11 04:49:35.665941427 +0300
+++ flex-2.5.37/tests/Makefile.in 2012-10-11 04:50:21.048847253 +0300
@@ -120,7 +120,6 @@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
-BISON = @BISON@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
@@ -251,9 +250,6 @@
test-rescan-nr \
test-basic-nr \
test-basic-r \
- test-bison-yylloc \
- test-bison-yylval \
- test-bison-nr \
test-multiple-scanners-nr \
test-multiple-scanners-r \
test-header-nr \
@@ -300,9 +296,6 @@
test-rescan-nr \
test-basic-nr \
test-basic-r \
- test-bison-yylloc \
- test-bison-yylval \
- test-bison-nr \
test-multiple-scanners-nr \
test-multiple-scanners-r \
test-header-nr \
#!/bin/sh
exec /usr/bin/flex -l "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment