summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bf59ace407dff1c5ae09fd7020137aaa19e4033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Benjamin Hedrich <code at pagenotfound.de>
pkgname=raspberry-remote-git
_gitname=raspberry-remote
pkgver=70.8a5b705
pkgrel=1
pkgdesc="Control remote plugs with the Raspberry Pi, features a webinterface. Uses RCSwitch and wiringPi."
url="https://github.com/xkonni/raspberry-remote"
arch=('armv7h' 'armv6h' 'i686' 'x86_64')
license=('GPL2')
depends=('wiringpi-git')
makedepends=('git')
source=('git://github.com/xkonni/raspberry-remote')
md5sums=('SKIP')

pkgver() {
    cd $_gitname
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
    cd $_gitname
    make send
}

package() {
    cd $_gitname
    install -D send "${pkgdir}"/usr/bin/send
}