blob: 0aa623c5d0a758240d254f5f88085d8c4c2d3857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Jake Tucker <jaketckr+arch@gmail.com>
pkgname=cnet
pkgver=3.3.4
pkgrel=2
pkgdesc="Enables development of / experimentation with a variety of protocols in networks"
arch=('i686' 'x86_64')
url="http://www.csse.uwa.edu.au/cnet/"
license=('GPL2')
depends=('tk>=8.4' 'libelf')
options=('staticlibs')
install="cnet.install"
source=(Makefile.patch
src.Makefile.linux.patch
cnet.sh)
md5sums=('c24a6296f95fdd02121cce557949eaee'
'0b70b1ad53ed27a5aec71f2dc93d7125'
'd1c2b8e09ee6b2a811ed79505dce6c70')
prepare() {
curl --data "email=&role=other&role-other=&location=&country=&os=linux&os-other=&submit=+Submit+information%2C++download+cnet+v3.3.4" \
https://secure.csse.uwa.edu.au/run/cnet-download > $srcdir/$pkgname.tgz
tar -xf $srcdir/$pkgname.tgz
patch "$pkgname-$pkgver/src/Makefile.linux" < src.Makefile.linux.patch
patch "$pkgname-$pkgver/Makefile" < Makefile.patch
}
pkgver() {
grep -E "VERSION[ ]*" $srcdir/$pkgname*/Makefile | grep -oEi "[0-9]+(.[0-9])*"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make PREFIX=$pkgdir/usr
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make PREFIX=$pkgdir/usr install
mkdir -p $pkgdir/etc/profile.d
cp $srcdir/cnet.sh $pkgdir/etc/profile.d/cnet.sh
}
|