1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
5 pkgdesc="A collection of scripts for Arch Linux packages"
7 url="http://github.com/Daenyth/pkgtools"
10 depends=('bash>=4' 'libarchive' 'pcre' 'python2' 'python')
14 backup=('etc/pkgtools/newpkg.conf' 'etc/pkgtools/pkgfile.conf' 'etc/pkgtools/spec2arch.conf')
15 install=pkgtools.install
16 optdepends=('cron: For pkgfile --update entry'
17 'abs: Provides proto packaging files for newpkg'
18 'python-yaml: for gem2arch')
21 _gitroot="git://github.com/Daenyth/pkgtools.git"
26 msg "Connecting to GIT server...."
28 if [ -d ${srcdir}/$_gitname ] ; then
29 cd $srcdir/$_gitname && git pull origin
30 msg "The local files are updated."
35 msg "GIT checkout done or server timeout"
36 msg "Starting make..."
38 [[ -d $srcdir/$_gitname-build ]] && rm -r ${srcdir}/$_gitname-build
39 cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
40 cd ${srcdir}/$_gitname-build
43 make DESTDIR=${pkgdir} install
45 # vim:set ts=2 sw=2 et: