diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | Makefile.patch | 4 | ||||
-rw-r--r-- | PKGBUILD | 16 |
3 files changed, 20 insertions, 6 deletions
@@ -1,13 +1,17 @@ +# Generated by mksrcinfo v8 +# Thu Dec 10 02:30:36 UTC 2015 pkgbase = libflate pkgdesc = Flate is a C template library used to deal with html code in CGI applications. pkgver = 2.0.1 - pkgrel = 1 + pkgrel = 2 url = http://flate.dead-inside.org/ arch = i686 arch = x86_64 license = GPL source = http://flate.dead-inside.org/libflate-2.0.1.tar.gz + source = Makefile.patch md5sums = 840723fc6ab683f0cc87053890d41363 + md5sums = 4c74aeb2fdb9f1a9c4068ac42f4a4b95 pkgname = libflate diff --git a/Makefile.patch b/Makefile.patch new file mode 100644 index 000000000000..fac58232d1ce --- /dev/null +++ b/Makefile.patch @@ -0,0 +1,4 @@ +12c12 +< $(CC) $(CFLAGS) flate.c -c -I. +--- +> $(CC) $(CFLAGS) flate.c -c -I. -fPIC @@ -6,7 +6,7 @@ # Maintainer: Gabriel <kainlite@gmail.com> pkgname=libflate pkgver=2.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="Flate is a C template library used to deal with html code in CGI applications." arch=('i686' 'x86_64') url="http://flate.dead-inside.org/" @@ -22,12 +22,18 @@ backup=() options=() install= changelog= -source=(http://flate.dead-inside.org/$pkgname-$pkgver.tar.gz) +source=( + http://flate.dead-inside.org/$pkgname-$pkgver.tar.gz + Makefile.patch + ) noextract=() -md5sums=('840723fc6ab683f0cc87053890d41363') #generate with 'makepkg -g' +md5sums=('840723fc6ab683f0cc87053890d41363' + '4c74aeb2fdb9f1a9c4068ac42f4a4b95') build() { cd "$srcdir/$pkgname-$pkgver" + ls $srcdir + patch "$srcdir/$pkgname-$pkgver/Makefile" -p1 "$srcdir/Makefile.patch" make } @@ -35,6 +41,6 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver" - sudo install -Dm644 "$srcdir/$pkgname-$pkgver/flate.o" "/usr/lib/" - sudo install -Dm644 "$srcdir/$pkgname-$pkgver/libflate.a" "/usr/lib/" + sudo install -Dm644 "$srcdir/$pkgname-$pkgver/flate.o" "/usr/lib/" + sudo install -Dm644 "$srcdir/$pkgname-$pkgver/libflate.a" "/usr/lib/" } |