updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / initscripts-systemd-git / PKGBUILD
blobf92797acac4fda22a7b6655b5251d526291caf4f
1 # Contributor: Dave Reisner <d@falconindy.com>
3 pkgname=initscripts-systemd-git
4 pkgver=20120122
5 pkgrel=1
6 pkgdesc="Arch specific systemd initialization/bootup scripts for systemd"
7 arch=('any')
8 url="http://www.github.com/falconindy/initscripts-systemd"
9 license=('GPL')
10 depends=('systemd-git')
11 provides=("initscripts-systemd=$pkgver")
12 conflicts=('initscripts-systemd')
13 makedepends=('git')
14 install=initscripts-systemd.install
16 _gitroot="git://github.com/falconindy/initscripts-systemd.git"
17 _gitname="initscripts-systemd"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [[ -d $_gitname ]] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 package() {
38   make -C "$srcdir/$_gitname-build" DESTDIR="$pkgdir" install