diff options
author | Build packages | 2022-12-27 12:06:24 +0100 |
---|---|---|
committer | Build packages | 2022-12-27 12:06:24 +0100 |
commit | 004e2dae66c5fcbab3829fa0a13e3ff24fa73bc0 (patch) | |
tree | 376c1176f5e8d1459052005d1dc5538107a4aa02 | |
download | aur-stc8prog-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b27d4008d792 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = stc8prog-git + pkgdesc = STC MCU ISP flash tool + pkgver = 1.4.r5.g5151cba + pkgrel = 1 + url = https://github.com/IOsetting/stc8prog + arch = x86_64 + arch = aarch64 + arch = riscv64 + license = Apache + depends = glibc + provides = stc8prog-git + conflicts = stc8prog + source = stc8prog::git+https://github.com/IOsetting/stc8prog.git + sha256sums = SKIP + +pkgname = stc8prog-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a149b4357c32 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Peter Schildmann <linux at schildmann dot info> +_pkgname=stc8prog +pkgname=$_pkgname-git +pkgver=1.4.r5.g5151cba +pkgrel=1 +pkgdesc="STC MCU ISP flash tool" +arch=('x86_64' 'aarch64' 'riscv64') +license=('Apache') +url="https://github.com/IOsetting/stc8prog" +source=("$_pkgname::git+https://github.com/IOsetting/stc8prog.git") +depends=('glibc') +makedepends=() +provides=("$pkgname") +conflicts=("$_pkgname") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $_pkgname + make +} + +package() { + cd $_pkgname + install -Dm 755 stc8prog -t "$pkgdir/usr/bin" + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 docs/README.md -t "$pkgdir/usr/share/doc/$pkgname/docs" + install -Dm 644 docs/auto-download-schematics.png -t "$pkgdir/usr/share/doc/$pkgname/docs" +} + |