blob: 72b14f57b897d067eba61b6ec3de940f8e9f3945 (
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
|
# Maintainer: Tony Lambiris <tony@criticalstack.com>
pkgname=gr-keyfob-git
pkgver=r15.d7e10aa
pkgrel=2
pkgdesc="Transceiver for Hella wireless car key fobs"
arch=('i686' 'x86_64')
url="https://github.com/bastibl/gr-keyfob"
license=('GPL')
depends=('git')
makedepends=('cmake')
source=("${pkgname}::git+https://github.com/bastibl/gr-keyfob")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
mkdir -p "$srcdir/$pkgname/build"
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$srcdir/$pkgname/build"
make DESTDIR="${pkgdir}" install
if test -d "${pkgdir}"/usr/lib64; then
mkdir -p "${pkgdir}"/usr/lib
mv -fv "${pkgdir}"/usr/lib64/* "${pkgdir}"/usr/lib/
rmdir "${pkgdir}"/usr/lib64
fi
}
|