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

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:10:47 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:10:46
  Author: felixonmars
Revision: 659592

archrelease: copy trunk to community-staging-x86_64

Added:
  libsvgtiny/repos/community-staging-x86_64/
  libsvgtiny/repos/community-staging-x86_64/PKGBUILD
    (from rev 659591, libsvgtiny/trunk/PKGBUILD)

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

Copied: libsvgtiny/repos/community-staging-x86_64/PKGBUILD (from rev 659591, libsvgtiny/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 17:10:46 UTC (rev 659592)
@@ -0,0 +1,42 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+
+pkgname=libsvgtiny
+pkgver=0.1.7
+pkgrel=4
+pkgdesc='SVG Tiny library'
+arch=(x86_64)
+url='https://www.netsurf-browser.org/projects/libsvgtiny/'
+license=(MIT)
+makedepends=(netsurf-buildsystem git libwapcaplet libdom gperf)
+depends=('libdom>=0.3.3')
+source=("git+https://git.netsurf-browser.org/libsvgtiny.git#tag=release/$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  sed -i 's:_BSD_SOURCE:_DEFAULT_SOURCE:' "$pkgname/Makefile"
+}
+
+build() {
+  export CFLAGS="$CFLAGS -shared -fPIC -w"
+  export LDFLAGS="$LDFLAGS -shared"
+  make -C $pkgname \
+    INCLUDEDIR=include \
+    LIBDIR=lib \
+    PREFIX=/usr \
+    COMPONENT_TYPE=lib-shared
+}
+
+package() {
+  make -C $pkgname \
+    DESTDIR="$pkgdir" \
+    INCLUDEDIR=include \
+    LIBDIR=lib \
+    PREFIX=/usr \
+    COMPONENT_TYPE=lib-shared \
+    install
+  install -Dm644 $pkgname/COPYING \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# getver: source.netsurf-browser.org/libsvgtiny.git
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list