summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca1e357051dee45a6a7cab2e2c3765ec8216df66 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Patrick Wozniak <hello@patwoz.de>

pkgname=wiringop-git
pkgver=20151115.r16.7538fcb
pkgrel=1
pkgdesc="This is a modified WiringPi for OrangePi. We call it WiringOP. (git-version)"

arch=('any')
url="https://github.com/zhaolei/WiringOP"
license=('unknown')

depends=(
)
optdepends=(
)
makedepends=(
  'cmake'
  'gcc'
  'git'
)
conflicts=(
)

source=(
  "${pkgname%-git}::git+${url}.git#branch=h3"
)
sha256sums=(
  'SKIP'
)

pkgver() {
  cd "${pkgname%-git}"
  printf "%s.r%s.%s" "$(date +%Y%m%d)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname%-git}"
  ./build
}

package() {
  cd "${pkgname%-git}"
  install -Dm755 "${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
}