Username: Password: Remember me
# Maintainer: FranzMari <framarinucci@gmail.com>
# Contributor: FranzMari <framarinucci@gmail.com>
 
pkgname=acpid-git
pkgver=20130910
pkgrel=1
pkgdesc='A daemon for delivering ACPI power management events with netlink support'
arch=('x86_64')
url='http://sourceforge.net/projects/acpid2/'
license=('GPL')
depends=('bash')
conflicts=('acpid')
makedepends=('git' 'make')
optdepends=('perl: use perl based examples')
 
_gitname="acpid2-git"
_gitroot="http://git.code.sf.net/p/acpid2/code"
 
build() {
  cd ${srcdir}
  msg "Connecting to GIT server...."
 
  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
    cd ..
  else
    git clone $_gitroot $_gitname
  fi
 
  msg "GIT checkout done or server timeout"
 
  cd "${_gitname}"
}
 
package() {
  cd "${srcdir}/${_gitname}"
  autoreconf --install --force
  ./configure --prefix=/usr
  make
  make DESTDIR="${pkgdir}" install
}
 
# vim:set ts=2 sw=2 ft=sh et: