summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Martinez-Julia2015-09-07 20:02:48 +0200
committerPedro Martinez-Julia2015-09-07 20:02:48 +0200
commit9e160880665e665a22f81bb7de1c5cd1caf6386e (patch)
tree2656df233f64b33511668788364fb6ffbab28ebd
parent2cad45f929f7e5b070261259ce1978ec2e996fc0 (diff)
downloadaur-9e160880665e665a22f81bb7de1c5cd1caf6386e.tar.gz
Switch from Git to release tarball.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD13
2 files changed, 9 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 719e280363d..82f24e428a7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mininet
pkgdesc = Process-based network emulator (stable branch)
pkgver = 2.2.1
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/mininet/mininet/
arch = i686
arch = x86_64
@@ -16,8 +16,8 @@ pkgbase = mininet
depends = iperf
optdepends = openvswitch
optdepends = xorg-xhost
- source = git://github.com/mininet/mininet.git
- md5sums = SKIP
+ source = https://github.com/mininet/mininet/archive/2.2.1.tar.gz
+ sha256sums = e4c20a6ab4ddfe4d5cad06ba25742507967df67a845dbe2e90d627af7cd21705
pkgname = mininet
diff --git a/PKGBUILD b/PKGBUILD
index aaa48bebee9..706ecf93c37 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=mininet
pkgver=2.2.1
-pkgrel=2
+pkgrel=3
pkgdesc="Process-based network emulator (stable branch)"
url="https://github.com/mininet/mininet/"
license=('custom')
@@ -11,12 +11,11 @@ depends=('bash' 'python2' 'python2-networkx' 'net-tools' 'iputils' 'iperf')
optdepends=('openvswitch' 'xorg-xhost')
makedepends=('help2man' 'python2-setuptools')
arch=('i686' 'x86_64')
-source=("git://github.com/mininet/mininet.git")
-md5sums=('SKIP')
+source=("https://github.com/mininet/mininet/archive/$pkgver.tar.gz")
+sha256sums=('e4c20a6ab4ddfe4d5cad06ba25742507967df67a845dbe2e90d627af7cd21705')
prepare () {
- cd "$srcdir/$pkgname"
- git checkout -b 2.2.1 2.2.1
+ cd "$srcdir/$pkgname-$pkgver"
grep python2 Makefile && return
grep -rIil '#!.*python' . | xargs -n1 sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:g'
grep -rIil '#!.*python' . | xargs -n1 sed -i 's:#!/usr/bin/python:#!/usr/bin/python2:g'
@@ -28,10 +27,10 @@ prepare () {
}
build () {
- cd "$srcdir/$pkgname"
+ cd "$srcdir/$pkgname-$pkgver"
}
package () {
- cd "$srcdir/$pkgname"
+ cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="${pkgdir}" install
}