David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
libcacard


Commits:
0587260a by David Runge at 2023-09-03T18:46:35+02:00
upgpkg: 2.7.0-3

Rebuild to set current upstream url and correct license identifier.
Prevent libtool from overlinking everything.
Remove hardcoding.

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -2,12 +2,17 @@
 
 pkgname=libcacard
 pkgver=2.7.0
-pkgrel=2
+pkgrel=3
 pkgdesc='(Common Access Card) library thar provides emulation of smart cards 
to a virtual card reader running in a guest virtual machine'
 arch=(x86_64)
-license=(GPL2)
-url='https://www.spice-space.org/page/Libcacard'
-depends=(nss glib2)
+license=(LGPL-2.1-or-later)
+url='https://gitlab.freedesktop.org/spice/libcacard'
+depends=(
+  glib2
+  glibc
+  nspr
+  nss
+)
 
source=(https://www.spice-space.org/download/libcacard/libcacard-$pkgver.tar.xz{,.asc})
 validpgpkeys=('F7DC50A57DFD52B94253295EF64907AC15B5C33D') #Jakub Jelen (work) 
<jje...@redhat.com>
 sha1sums=('85b85d33e5f2c68f3a792f09cae21de64edc91c0'
@@ -16,12 +21,13 @@ 
sha512sums=('347c13396e6777193e4e158321605410f4cbd90727c1ba8d85a1aac41d5ada96728
             'SKIP')
 
 build () {
-  cd libcacard-$pkgver
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr
+  # prevent excessive overlinking due to libtool
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 package() {
-  cd libcacard-$pkgver
-  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libcacard/-/commit/0587260aede7d43a2e49c39601507dc13723eebc

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libcacard/-/commit/0587260aede7d43a2e49c39601507dc13723eebc
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to