blob: 43b88bdef2e56c5e858c02a65106d1605d8bf549 (
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: swearchnick <swearchnick[at]gmail[dot]com>
pkgname=libb6
pkgver=r5.4e330d5
pkgrel=2
pkgdesc="Library for interfacing with SkyRC B6xx series chargers"
arch=('x86_64')
url="https://github.com/maciek134/libb6"
license=('GPL3')
depends=('libusb')
makedepends=('git' 'cmake')
source=("git+https://github.com/maciek134/libb6.git#commit=4e330d5")
sha256sums=('SKIP')
options=(!strip)
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
cmake . -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" -DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "$srcdir/$pkgname"
mkdir -p "$pkgdir/usr"
make prefix="$pkgdir/usr" install
}
|