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 /PKGBUILD | |
download | aur-stc8prog-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
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" +} + |