[arch-commits] Commit in libndp/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sat Sep 29 21:50:02 UTC 2018
Date: Saturday, September 29, 2018 @ 21:50:01
Author: heftig
Revision: 335561
1.7-1
Modified:
libndp/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-29 21:35:49 UTC (rev 335560)
+++ PKGBUILD 2018-09-29 21:50:01 UTC (rev 335561)
@@ -1,7 +1,7 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
pkgname=libndp
-pkgver=1.6
+pkgver=1.7
pkgrel=1
pkgdesc="Library for Neighbor Discovery Protocol"
arch=(x86_64)
@@ -8,11 +8,23 @@
url="http://libndp.org/"
license=(LGPL2.1)
depends=(glibc)
-source=($url/files/$pkgname-$pkgver.tar.gz)
-sha256sums=('0c7dfa84e013bd5e569ef2c6292a6f72cfaf14f4ff77a77425e52edc33ffac0e')
+makedepends=(git)
+_commit=96674e7d4f4d569c2c961e865cc16152dfab5f09 # tags/v1.7
+source=("git+https://github.com/jpirko/libndp#commit=$_commit")
+sha256sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+ ./autogen.sh
+}
+
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--disable-static --libexecdir=/usr/lib
make
@@ -19,11 +31,11 @@
}
check() {
- cd $pkgname-$pkgver
+ cd $pkgname
make check
}
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list