add back in pkgver()
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
_realname=rkdeveloptool
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=1.0
|
||||
pkgver=r70.21b25fd
|
||||
pkgrel=1
|
||||
_commit='21b25fd4a70331819b557fe93015b635b9594543'
|
||||
pkgdesc="rkdeveloptool is a tool from Rockchip to communicate with Rockusb devices (mingw-w64)"
|
||||
@@ -19,6 +19,12 @@ source=("rkdeveloptool"::"git+https://github.com/rockchip-linux/rkdeveloptool.gi
|
||||
sha256sums=('SKIP')
|
||||
install=driver-instructions.install
|
||||
|
||||
# updates pkgver variable since we are using git commit
|
||||
pkgver() {
|
||||
cd "${srcdir}/${_realname}"
|
||||
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_realname}"
|
||||
aclocal
|
||||
|
||||
Reference in New Issue
Block a user