blob: 46ee334a3e54d38a648f83bd344a2aeb05f8d632 (
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
|
pkgname=nfu-git
pkgver=20141115
pkgrel=1
pkgdesc="Numeric Fu for the command line"
arch=('any')
url="https://github.com/spencertipping/nfu"
license=('MIT')
depends=('perl' 'perl-json')
makedepends=('git')
_gitroot="git://github.com/spencertipping/nfu.git"
_gitname="nfu"
build() {
cd "$srcdir"
msg "Cloning repository..."
if [ -d $_gitname ]; then
cd $_gitname && git pull origin
else
git clone $_gitroot $_gitname
fi
}
package() {
mkdir -p "$pkgdir/usr/bin"
cp "$srcdir/$_gitname/nfu" "$pkgdir/usr/bin"
}
|