[arch-commits] Commit in libcss/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 18:16:34 UTC 2020


    Date: Tuesday, July 7, 2020 @ 18:16:33
  Author: felixonmars
Revision: 660063

archrelease: copy trunk to community-staging-x86_64

Added:
  libcss/repos/community-staging-x86_64/
  libcss/repos/community-staging-x86_64/PKGBUILD
    (from rev 660060, libcss/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: libcss/repos/community-staging-x86_64/PKGBUILD (from rev 660060, libcss/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 18:16:33 UTC (rev 660063)
@@ -0,0 +1,43 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=libcss
+pkgver=0.9.1
+pkgrel=2
+pkgdesc='CSS parser and selection engine'
+arch=(x86_64)
+url='https://www.netsurf-browser.org/projects/libcss/'
+license=(MIT)
+makedepends=(netsurf-buildsystem)
+depends=('libparserutils>=0.2.4' 'libwapcaplet>=0.4.3')
+source=("https://download.netsurf-browser.org/libs/releases/libcss-$pkgver-src.tar.gz")
+sha256sums=('d2dce16e93392e8d6a7209420d47c2d56a3811701a0e81a724fc541c63d3c6dc')
+
+prepare() {
+  sed -i 's,_BSD_SOURCE,_DEFAULT_SOURCE,' "$pkgname-$pkgver/Makefile"
+}
+
+build() {
+  export CFLAGS="$CFLAGS -w"
+  make -C "$pkgname-$pkgver" \
+    INCLUDEDIR=include \
+    LIBDIR=lib \
+    PREFIX=/usr \
+    COMPONENT_TYPE=lib-shared
+}
+
+package() {
+  export CFLAGS="$CFLAGS -w"
+  make -C "$pkgname-$pkgver" \
+    INCLUDEDIR=include \
+    LIBDIR=lib \
+    PREFIX=/usr \
+    DESTDIR="$pkgdir" \
+    install
+
+  install -Dm644 "$pkgname-$pkgver/COPYING" \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list