[arch-commits] Commit in libnsgif/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Feb 25 14:50:25 UTC 2019


    Date: Monday, February 25, 2019 @ 14:50:22
  Author: arodseth
Revision: 435927

upgpkg: libnsgif 0.2.1-2

Modified:
  libnsgif/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-25 14:46:44 UTC (rev 435926)
+++ PKGBUILD	2019-02-25 14:50:22 UTC (rev 435927)
@@ -4,19 +4,18 @@
 
 pkgname=libnsgif
 pkgver=0.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Decoding library for the GIF image file format'
-arch=('x86_64')
-url='http://www.netsurf-browser.org/projects/libnsgif/' # no https available
-license=('MIT')
+arch=(x86_64)
+url='https://www.netsurf-browser.org/projects/libnsgif/'
+license=(MIT)
 makedepends=('netsurf-buildsystem>=1.7')
-source=("http://download.netsurf-browser.org/libs/releases/$pkgname-$pkgver-src.tar.gz")
+source=("https://download.netsurf-browser.org/libs/releases/$pkgname-$pkgver-src.tar.gz")
 sha256sums=('9eaea534cd70b53c5aaf45317ae957701685a6b4a88dbe34ed26f4faae879a4b')
 
 build() {
   export CFLAGS="$CFLAGS -fno-strict-aliasing -w"
-
-  make -C "$pkgname-$pkgver" \
+  make -C $pkgname-$pkgver \
     INCLUDEDIR=include \
     LIBDIR=lib PREFIX=/usr \
     COMPONENT_TYPE="lib-shared"
@@ -23,15 +22,14 @@
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-
-  make install \
+  make -C $pkgname-$pkgver \
     INCLUDEDIR=include \
     LIBDIR=lib \
     PREFIX=/usr \
-    DESTDIR="$pkgdir"
-
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+    DESTDIR="$pkgdir" \
+    install
+  install -Dm644 $pkgname-$pkgver/COPYING \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }
 
 # getver: netsurf-browser.org/projects/libnsgif/



More information about the arch-commits mailing list