summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b93cf05c5cbf41caf2a1edc7f09dac6e814b3e1 (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
29
# Maintainer: Winux <winux@winux.cc>

pkgname=rtk-ir-tools-git
_pkgname=rtk-ir-tools
pkgver=r3.0f0eacd
pkgrel=1
pkgdesc="Tools and hooks to initialize Dell Realtek IR camera emitters"
arch=('x86_64')
url="https://github.com/mrwinux/rtk-ir-tools"
license=('GPL')
depends=('pam' 'glibc')
makedepends=('gcc' 'make')
source=("$_pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" PREFIX="/usr" install
}