updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / s-util-git / PKGBUILD
blob10e18cc11355f06ba3947fd12393cab873c5983f
2 #Maintainer: Yichao Yu <yyc1992@gmail.com>
3 #Contributor: Yichao Yu <yyc1992@gmail.com>
5 pkgname=s-util-git
6 pkgver=20120114
7 pkgrel=1
8 pkgdesc="Simple utilities, git version"
9 arch=('any')
10 provides=('s-util')
11 conflicts=('s-util')
12 url="https://github.com/yuyichao/s-util"
13 license=('GPL')
14 depends=('bash' 'coreutils' 'findutils' 'grep' 'awk' 'sed')
15 optdepends=('xdg-utils: for using xopen to open any kind of files without annoy cli output'
16   'openssl: for grub certificate from website'
17   'nss: for add certificate in to database'
18   'wget: for using recget to download recursively'
19   'texlive-bin: for using texit to generate a tmp pdf'
20   'curl: for netman and mitclass'
21   'util-linux: mount')
22 makedepends=('git')
24 _gitroot='https://yuyichao@github.com/yuyichao/s-util.git'
25 _gitname='s-util'
26 build() {
27   cd "$srcdir"
29   msg "Connecting to github.com"
31   if [ -d "$startdir/src/$_gitname" ] ;then
32     cd "$startdir/src/$_gitname" && git pull origin
33     msg "The local files are updated."
34   else
35     git clone "$_gitroot"
36   fi
37   msg "GIT checkout done or server timeout"
39   cd "$srcdir/$_gitname"
41   git checkout master
43   mkdir build
44   cd build
46   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
49 package() {
50   cd "${srcdir}/$_gitname/build"
51   make DESTDIR="${pkgdir}" install