blob: 7e81a5dc43836f4c0c0787bf911b01d6bdc77820 (
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
43
|
# Maintainer ugjka <ugis.germanis@gmmail.com>
# Contributor: Bill Sun <billksun@gmail.com>
# Contributor magnific0
pkgname=wondershaper-git
pkgver=20130114
pkgrel=1
pkgdesc="network adapter bandwidth limiter"
arch=('x86_64' 'i686')
url="https://github.com/magnific0/wondershaper.git"
license=('GPL2')
depends=('iproute')
_gitroot="git://github.com/magnific0/wondershaper.git"
_gitname="wondershaper"
build() {
cd "$srcdir"
msg "Connecting to the git repository..."
if [ -d "$srcdir/$_gitname" ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
cd "$srcdir"
rm -rf $_gitname-build
git clone $_gitname $_gitname-build
cd $_gitname-build
make
}
package() {
cd $_gitname-build
install -Dm755 wondershaper "$pkgdir/usr/bin/wondershaper"
}
# vim:set ts=2 sw=2 et:
|