39 lines
999 B
Bash
39 lines
999 B
Bash
# Maintainer: taotieren <admin@taotieren.com>
|
|
|
|
pkgname=xfel-git
|
|
pkgver=1.3.2.r28.g1383b83
|
|
pkgrel=2
|
|
pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip."
|
|
arch=(x86_64
|
|
aarch64
|
|
riscv64)
|
|
url="https://github.com/xboot/xfel"
|
|
license=('MIT')
|
|
provides=(${pkgname%-git})
|
|
conflicts=(${pkgname%-git})
|
|
depends=('libusb')
|
|
makedepends=('git' 'gcc')
|
|
source=("${pkgname%-git}::git+${url}.git")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${pkgname%-git}"
|
|
git describe --long --tags | sed 's/^v//g' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
prepare()
|
|
{
|
|
git -C "${srcdir}/${pkgname%-git}" clean -dfx
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname%-git}"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 "${srcdir}/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
|
|
install -Dm0644 "${srcdir}/${pkgname%-git}/99-xfel.rules" "${pkgdir}/etc/udev/rules.d/99-xfel.rules"
|
|
install -Dm0644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|