summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Ostuni2015-11-12 15:34:47 +0100
committerDario Ostuni2015-11-12 15:34:47 +0100
commitcda0ff1c221a74305cdd27ea3f7e183529adeafc (patch)
treefb2ae1ee569c63d91d3d256ca442d1829b442614
parentec27a208f76f26988cb23687af99f4a43ff6e011 (diff)
downloadaur-cda0ff1c221a74305cdd27ea3f7e183529adeafc.tar.gz
Added fix for pkg-config file
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD11
-rw-r--r--fix_pc_file.patch11
3 files changed, 21 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4f80e19e877..c8f33a7b9d0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
pkgbase = cgicc
pkgdesc = C++ library that simplifies the creation of CGI applications
pkgver = 3.2.16
- pkgrel = 3
+ pkgrel = 4
url = https://www.gnu.org/software/cgicc/
arch = i686
arch = x86_64
license = LGPL3
makedepends = doxygen
- options = staticlibs
source = https://ftp.gnu.org/gnu/cgicc/cgicc-3.2.16.tar.gz
+ source = fix_pc_file.patch
sha256sums = 9dceb36d2da52791ee11f2fb5bb6435c22e69ef50f38073c4329386b883d5aaa
+ sha256sums = 5a0b29ce1028cba8d7cc7d52244077c030ed8f447e169a7afa946b376150b35b
pkgname = cgicc
diff --git a/PKGBUILD b/PKGBUILD
index 3f9680b5b9a..1257e8e63c2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,21 @@
# Maintainer: Dario Ostuni <another.code.996@gmail.com>
pkgname=cgicc
pkgver=3.2.16
-pkgrel=3
+pkgrel=4
pkgdesc="C++ library that simplifies the creation of CGI applications"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/cgicc/"
license=('LGPL3')
makedepends=('doxygen')
-options=('staticlibs')
-source=("https://ftp.gnu.org/gnu/cgicc/$pkgname-$pkgver.tar.gz")
-sha256sums=('9dceb36d2da52791ee11f2fb5bb6435c22e69ef50f38073c4329386b883d5aaa')
+options=()
+source=("https://ftp.gnu.org/gnu/cgicc/$pkgname-$pkgver.tar.gz"
+ "fix_pc_file.patch")
+sha256sums=('9dceb36d2da52791ee11f2fb5bb6435c22e69ef50f38073c4329386b883d5aaa'
+ '5a0b29ce1028cba8d7cc7d52244077c030ed8f447e169a7afa946b376150b35b')
build() {
cd "$pkgname-$pkgver"
+ patch -p2 -b -z .orig < "${srcdir}/fix_pc_file.patch"
./configure --prefix=/usr
make
}
diff --git a/fix_pc_file.patch b/fix_pc_file.patch
new file mode 100644
index 00000000000..c144233f395
--- /dev/null
+++ b/fix_pc_file.patch
@@ -0,0 +1,11 @@
+--- src/cgicc-3.2.16/cgicc.pc.in.orig 2015-11-11 20:54:03.569298259 -0500
++++ src/cgicc-3.2.16/cgicc.pc.in 2015-11-11 20:54:09.266042294 -0500
+@@ -7,5 +7,5 @@
+ Description: GNU cgicc is an ANSI C++ compliant class library that greatly simplifies the creation of CGI applications for the World Wide Web.
+ Requires:
+ Version: @VERSION@
+-Libs: -L${libdir}
+-Cflags:
+\ No newline at end of file
++Libs: -L${libdir} -lcgicc
++Cflags: -I${includedir}