summaryrefslogtreecommitdiff
path: root/community/libcss/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libcss/PKGBUILD')
-rw-r--r--community/libcss/PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/community/libcss/PKGBUILD b/community/libcss/PKGBUILD
index 56a00339c..f0411f553 100644
--- a/community/libcss/PKGBUILD
+++ b/community/libcss/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=libcss
pkgver=0.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="A CSS parser and selection engine."
arch=('i686' 'x86_64')
url="http://www.netsurf-browser.org/projects/libcss/"
@@ -14,12 +14,17 @@ md5sums=('47b9bba60fffe16ecebeba578c89fd40')
build() {
cd ${srcdir}/${pkgname}-${pkgver}-src
+
export CFLAGS="-Wno-error=unused-but-set-variable"
- make
+
+ make PREFIX=/usr COMPONENT_TYPE="lib-shared"
+ make PREFIX=/usr COMPONENT_TYPE="lib-static"
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}-src
- make PREFIX=/usr DESTDIR=${pkgdir} install
+
+ make install PREFIX=/usr DESTDIR="${pkgdir}" COMPONENT_TYPE="lib-shared"
+ make install PREFIX=/usr DESTDIR="${pkgdir}" COMPONENT_TYPE="lib-static"
install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}