updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / sysrqd-git / PKGBUILD
blob7e6f79d9232f3ff373b39a2ea121e19e5440ed4d
1 # Maintainer: malex984 <malex984 at googlemail dot com>
2 # Contributor: sputnick <gilles DOT quenot AT gmail DOT com>
4 pkgname=sysrqd-git
5 pkgver=20110210
6 pkgrel=1
8 pkgdesc="A small daemon intended to manage Linux Sysrq over network."
9 arch=('i686' 'x86_64')
10 url="http://julien.danjou.info/sysrqd/"
11 license=('GPL')
12 install=('sysrqd.install')
14 makedepends=('git')
15 conflicts=('sysrqd')
16 provides=('sysrqd')
18 _gitroot="git://git.naquadah.org/sysrqd.git"
19 _gitname="sysrqd"
21 build() {
22     cd ${srcdir}
24     msg "Connecting to the git repository..."
25     if [ -d ${srcdir}/${_gitname} ]; then
26         cd ${_gitname}
27         git pull origin
28     else
29         git clone --depth 1 ${_gitroot}
30     fi
31     msg "GIT checkout done or server timeout"
33     rm -rf ${srcdir}/${_gitname}-build
34     cp -r  ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
35     cd ${srcdir}/${_gitname}-build
37     msg "Starting make..."
38     make || return 1
39     make DESTDIR=${pkgdir} install || return 1