# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=raspi-lights-out
pkgver=0.2
pkgrel=1
pkgdesc='simple skripts for lights-out like management from a raspi'
arch=('any')
url="https://git.eckner.net/Erich/${pkgname}"
license=('GPL')
backup=('etc/lights-out.conf' 'srv/http/lights-out/password')
source=(
    "https://git.eckner.net/Erich/${pkgname}/snapshot/${pkgname}-${pkgver}.tar.xz"
)
sha512sums=('44e96d550204a93caa476c5d1164188c6fc1cc0ea96544a13012492c5ce51c1e63d4f885b27e56493595bae073de7ee2a01a858740345e5bd6d135237d43772c')

build() {

    cd ${pkgname}-${pkgver}
    make

}

package() {

    depends=('php' 'wiringpi')

    cd ${pkgname}-${pkgver}
    make DESTDIR=${pkgdir} install

}