blob: f22df776f7d6748db5b6bbbaf74c77b6bfbfe09a (
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
|
# Maintainer: Jason Gardner <buhrietoe@gmail.com>
# Contributer: Jason Gardner <buhrietoe@gmail.com>
pkgname=j2534-git
pkgver=r9.5ffb718
pkgrel=1
pkgdesc="j2534 driver for linux"
arch=("any")
url="https://github.com/NikolaKozina/j2534"
license=("unknown")
depends=("libusb")
makedepends=("git") # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}"::"git+https://github.com/NikolaKozina/${pkgname%-git}")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
( set -o pipefail
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/${pkgname%-git}"
make
}
package() {
cd "$srcdir/${pkgname%-git}"
mkdir -p $pkgdir/usr/lib/pkgconfig $pkgdir/usr/include
cp j2534.h $pkgdir/usr/include/
cp j2534.pc $pkgdir/usr/lib/pkgconfig/
cp j2534.so $pkgdir/usr/lib/
}
|