updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / geninit-git / PKGBUILD
blob58f03a5c01921b5f5714641951c6c5c8c7bca09e
1 # Maintainer: Dave Reisner <d@falconindy.com>
3 pkgname=geninit-git
4 pkgver=20110516
5 pkgrel=1
6 pkgdesc="a modular initramfs creation utility"
7 arch=('i686' 'x86_64')
8 url="http://github.com/falconindy/geninit"
9 license=('MIT')
10 depends=('coreutils' 'bash' 'libarchive' 'file' 'findutils' 'grep'
11          'module-init-tools' 'mkinitcpio-busybox' 'udev>=168')
12 makedepends=('sed' 'git')
13 optdepends=('lzop: LZO compression')
14 conflicts=('geninit')
15 provides=('geninit')
16 backup=(etc/geninit.conf)
18 _gitroot="git://github.com/falconindy/geninit.git"
19 _gitname="geninit"
21 build() {
22   msg "Connecting to GIT server...."
24   if [[ -d $_gitname ]] ; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   make
41 package() {
42   make -C "$srcdir/$_gitname-build" PREFIX=/usr DESTDIR="$pkgdir" install
45 # vim: ft=sh syn=sh et