PKGBUILDs/alarm/odroid-c1-remote/PKGBUILD

35 lines
861 B
Bash
Raw Normal View History

2014-12-31 06:12:49 +00:00
# ODROID-C1 Remote Control Setup
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=odroid-c1-remote
2015-01-14 02:11:19 +00:00
pkgver=r1.00b09c9
2014-12-31 06:12:49 +00:00
pkgrel=1
arch=('armv7h')
pkgdesc="ODROID-C1 remote control setup"
url="http://www.hardkernel.com/"
license=('Proprietary')
2015-01-14 02:11:19 +00:00
makedepends=('git')
source=("git+https://github.com/mdrjr/c1_irremote.git"
2014-12-31 06:12:49 +00:00
'odroid_remote.service')
2015-01-14 02:11:19 +00:00
md5sums=('SKIP'
2014-12-31 06:12:49 +00:00
'6866b4f07369de69ea6ec57a3304c484')
2015-01-14 02:11:19 +00:00
pkgver() {
cd c1_irremote
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2014-12-31 06:12:49 +00:00
build() {
2015-01-14 02:11:19 +00:00
cd c1_irremote
2014-12-31 06:12:49 +00:00
make
}
package() {
2015-01-14 02:11:19 +00:00
cd c1_irremote
2014-12-31 06:12:49 +00:00
install -Dm644 "${srcdir}/odroid_remote.service" "${pkgdir}/usr/lib/systemd/system/odroid_remote.service"
install -Dm755 odroid_remote "${pkgdir}/usr/bin/odroid_remote"
install -Dm644 odroid_remote.conf "${pkgdir}/etc/odroid_remote.conf"
}