commit 70fa66018b3493b0196ed793021af9955cfb9b9a Author: taotieren Date: Wed May 26 14:01:58 2021 +0800 Update xfel-git diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..e0adfbd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = xfel-git + pkgdesc = Tiny FEL tools for allwinner SOC, support RISC-V D1 chip. + pkgver = d66fb6a + pkgrel = 1 + url = https://github.com/xboot/xfel + arch = any + license = MIT + makedepends = git + depends = libusb + provides = xfel-git + conflicts = xfel-git + conflicts = xfel + options = !strip + source = xfel::git+https://github.com/xboot/xfel.git + sha256sums = SKIP + +pkgname = xfel-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a4bce5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +src +pkg +xfel +*.deb +*.rpm +*.bz2 +*.gz +*.zip +*.tgz +*.pkg.tar.xz +*.pkg.tar.zst +*.log +*.png diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cf7b5af --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: taotieren + +pkgname=xfel-git +pkgver=d66fb6a +pkgrel=1 +pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip." +arch=('any') +url="https://github.com/xboot/xfel" +license=('MIT') +provides=(${pkgname}) +conflicts=(${pkgname} ${pkgname%-git}) +#replaces=(${pkgname}) +depends=('libusb') +makedepends=('git') +backup=() +options=('!strip') +#install=${pkgname}.install +source=("${pkgname%-git}::git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + git describe --always | sed 's|-|.|g' +} + +build() { + cd "${srcdir}/${pkgname%-git}" + make +} + +package() { + install -Dm755 "${srcdir}/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}" + install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE" +}