updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / systemd-arch-units-git / PKGBUILD
blob50867682b3a308015ffc896a22fce5c23fc2e9a2
1 # Contributor: Dave Reisner <d@falconindy.com>
3 pkgname=systemd-arch-units-git
4 pkgver=20110320
5 pkgrel=1
6 pkgdesc="Arch specific Systemd unit files"
7 arch=('any')
8 url="http://github.com/falconindy/systemd-arch-units"
9 license=('MIT')
10 depends=('systemd-git')
11 makedepends=('git')
12 groups=('systemd')
13 provides=('systemd-arch-units')
14 conflicts=('systemd-arch-units')
15 install=systemd-arch-units.install
17 _gitroot="git://github.com/falconindy/systemd-arch-units.git"
18 _gitname="systemd-arch-units"
20 build() {
21   cd "$srcdir"
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 -a "$srcdir/$_gitname/" "$srcdir/$_gitname-build"
38 package() {
39   cd "$srcdir/$_gitname-build"
40   make DESTDIR="$pkgdir" install