summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58661ed1aa08ca680c1ada447e8d0a75da243920 (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
# Maintainer: Douglas Creager <dcreager@dcreager.net>

pkgname=pine64-rkdeveloptool-git
_pkgname=${pkgname#pine64-}
_pkgname=${_pkgname%-git}
pkgver=1.1.0
pkgrel=1
pkgdesc='fastboot-like CLI tool for flashing rockchip devices, forked to support the PineNote and Quartz64 as well as other Pine64 RK devices'
arch=('x86_64' 'armv7h' 'aarch64')
url='https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool'
license=('GPL2')
provides=($_pkgname)
conflicts=($_pkgname)
makedepends=('git' 'scdoc')
depends=('libusb')
source=('git+https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool.git')
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    git describe | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cmake -B build -S "$srcdir/$_pkgname" \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
}