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

Christian Hesse eworm at archlinux.org
Wed Dec 20 19:17:38 UTC 2017


    Date: Wednesday, December 20, 2017 @ 19:17:37
  Author: eworm
Revision: 275064

upgpkg: libdnet 1.12-10

new upstream home

Modified:
  libdnet/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-20 19:16:32 UTC (rev 275063)
+++ PKGBUILD	2017-12-20 19:17:37 UTC (rev 275064)
@@ -4,34 +4,40 @@
 
 pkgname=libdnet
 pkgver=1.12
-pkgrel=9
-pkgdesc="A simplified, portable interface to several low-level networking routines"
+pkgrel=10
+pkgdesc='A simplified, portable interface to several low-level networking routines'
 arch=(x86_64)
 makedepends=('python2' 'pyrex')
 optdepends=('python2')
-license=("BSD")
-url="http://code.google.com/p/libdnet/"
-source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz
-	libdnet-1.12.pyrex2.7.patch)
-md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9'
-         '01c3a40f83fc13756728b836cd693942')
+license=('BSD')
+url='https://github.com/dugsong/libdnet'
+source=("https://github.com/dugsong/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz"
+	'libdnet-1.12.pyrex2.7.patch')
+sha256sums=('b6360659c93fa2e3cde9e0a1fc9c07bc4111f3448c5de856e095eb98315dd424'
+            '136141d0bde459a4c7acf6fdca6aa52d2a377b9fdc07116ddc85c6a776752ef8')
 
 prepare() {
-  cd "$srcdir"/$pkgname-$pkgver
+  cd "$srcdir"/$pkgname-$pkgname-$pkgver
+
   patch -p0 <"$srcdir"/libdnet-1.12.pyrex2.7.patch
   rm -f python/dnet.c
 }
 
 build() {
-  cd "$srcdir"/$pkgname-$pkgver
+  cd "$srcdir"/$pkgname-$pkgname-$pkgver
+
   autoreconf -I config --force --install
-  ./configure --prefix=/usr --sbindir=/usr/bin
+
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin
   pyrexc python/dnet.pyx
   make
 }
 
 package() {
-  cd "$srcdir"/$pkgname-$pkgver
+  cd "$srcdir"/$pkgname-$pkgname-$pkgver
+
   make DESTDIR="$pkgdir/" install
 
   cd python && \



More information about the arch-commits mailing list