Date: Tuesday, October 25, 2022 @ 16:43:13
  Author: heftig
Revision: 458927

0.10.1alpha-4

Modified:
  libmspack/trunk/PKGBUILD

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++----------------
 1 file changed, 32 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-25 16:36:44 UTC (rev 458926)
+++ PKGBUILD    2022-10-25 16:43:13 UTC (rev 458927)
@@ -1,32 +1,48 @@
-# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
 # Contributor: AndyRTR <[email protected]>
 
 pkgname=libmspack
+pkgver=0.10.1alpha
+pkgrel=4
 epoch=1
-pkgver=0.10.1alpha
-pkgrel=3
-pkgdesc='A library for Microsoft compression formats'
-url='https://www.cabextract.org.uk/libmspack/'
-arch=('x86_64')
-license=('GPL')
-depends=('glibc')
-makedepends=('git')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kyz/${pkgname}/archive/v${pkgver}.tar.gz";)
-sha256sums=('bd8537b04ebd2149819ce867e3eba50f862a8a0043fd2061360b4101eddaa382')
+pkgdesc="A library for Microsoft compression formats"
+url=https://www.cabextract.org.uk/libmspack/
+arch=(x86_64)
+license=(GPL)
+depends=(glibc)
+makedepends=(git)
+provides=(libmspack.so)
+options=(debug)
+_commit=ec93021025f27983027c1bc101f674cb14a85c0d  # tags/v0.10.1alpha^0
+source=("git+https://github.com/kyz/libmspack#commit=$_commit";)
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname/$pkgname
+  autoreconf -vfi
+}
+
 build() {
-  cd $pkgname-${pkgver}/$pkgname
-  autoreconf -vfi
-  ./configure --prefix=/usr --disable-static
+  cd $pkgname/$pkgname
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+    --disable-static
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 check() {
-  cd $pkgname-${pkgver}/$pkgname
+  cd $pkgname/$pkgname
   make check
 }
 
 package() {
-  cd $pkgname-${pkgver}/$pkgname
+  cd $pkgname/$pkgname
   make DESTDIR="$pkgdir" install
 }
+
+# vim:set sw=2 sts=-1 et:

Reply via email to