Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging 
/ Packages / lib32-libndp


Commits:
51ee961e by Jan Alexander Steffens (heftig) at 2024-07-03T09:50:38+02:00
1.9-1: Reduce differences to libndp

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,14 @@
+pkgbase = lib32-libndp
+       pkgdesc = Library for Neighbor Discovery Protocol (32-bit)
+       pkgver = 1.9
+       pkgrel = 1
+       url = http://libndp.org/
+       arch = x86_64
+       license = LGPL-2.1-or-later
+       makedepends = git
+       depends = lib32-glibc
+       depends = libndp
+       source = git+https://github.com/jpirko/libndp#tag=v1.9
+       b2sums = 
150f2bc4d0e67c44a694f6c6d0fb7f6927f7af2a8467b39fd77a41c0f5abb9df28d99432e444cff7328d0c8cd514516216d777cc416cfed3bb4cfa62007d6173
+
+pkgname = lib32-libndp


=====================================
PKGBUILD
=====================================
@@ -3,42 +3,53 @@
 # Contributor: Jan Alexander Steffens (heftig) <hef...@archlinux.org>
 
 pkgname=lib32-libndp
-pkgver=1.8
+pkgver=1.9
 pkgrel=1
-pkgdesc='Library for Neighbor Discovery Protocol'
-arch=('x86_64')
-url='http://libndp.org/'
-license=('LGPL')
-depends=('lib32-glibc' 'libndp')
-makedepends=('git')
-source=("git+https://github.com/jpirko/libndp#tag=v${pkgver}";)
-sha256sums=('SKIP')
+pkgdesc="Library for Neighbor Discovery Protocol (32-bit)"
+url="http://libndp.org/";
+arch=(x86_64)
+license=(LGPL-2.1-or-later)
+depends=(
+  lib32-glibc
+  libndp
+)
+makedepends=(git)
+source=("git+https://github.com/jpirko/libndp#tag=v$pkgver";)
+b2sums=('150f2bc4d0e67c44a694f6c6d0fb7f6927f7af2a8467b39fd77a41c0f5abb9df28d99432e444cff7328d0c8cd514516216d777cc416cfed3bb4cfa62007d6173')
 
 prepare() {
   cd libndp
-
   ./autogen.sh
 }
 
 build() {
+  local configure_options=(
+    --prefix=/usr
+    --libdir=/usr/lib32
+    --sysconfdir=/etc
+    --localstatedir=/var
+    --libexecdir=/usr/lib
+    --disable-static
+  )
+
   cd libndp
 
-  export CC='gcc -m32'
-  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+  export CC="gcc -m32" CXX="g++ -m32"
+  export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
 
-  ./configure \
-    --prefix='/usr' \
-    --libdir='/usr/lib32' \
-    --libexecdir='/usr/lib32' \
-    --localstatedir='/var' \
-    --sysconfdir='/etc' \
-    --disable-static
+  ./configure "${configure_options[@]}"
   make
 }
 
+check() {
+  cd libndp
+  make check
+}
+
 package() {
-  make DESTDIR="${pkgdir}" -C libndp install
-  rm -rf "${pkgdir}"/usr/{bin,include,share}
+  cd libndp
+  make DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/{bin,include,share}
 }
 
-# vim: ts=2 sw=2 et:
+# vim:set sw=2 sts=-1 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lib32-libndp/-/commit/51ee961ee0923889a65322fd78b84976cbc4fb9a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lib32-libndp/-/commit/51ee961ee0923889a65322fd78b84976cbc4fb9a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to