Update xfel-git

This commit is contained in:
taotieren 2021-05-26 14:01:58 +08:00
commit 70fa66018b
3 changed files with 65 additions and 0 deletions

18
.SRCINFO Normal file
View File

@ -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

13
.gitignore vendored Normal file
View File

@ -0,0 +1,13 @@
src
pkg
xfel
*.deb
*.rpm
*.bz2
*.gz
*.zip
*.tgz
*.pkg.tar.xz
*.pkg.tar.zst
*.log
*.png

34
PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: taotieren <admin@taotieren.com>
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"
}