diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cfceea0fe310 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Mon Oct 31 00:38:13 UTC 2016 +pkgbase = stcgal-git + pkgdesc = Open Source STC MCU ISP flash tool + pkgver = r127.86e289b + pkgrel = 1 + url = https://github.com/grigorig/stcgal + arch = any + license = MIT + makedepends = git + depends = python-pyserial + depends = python-setuptools + optdepends = python-pyusb: Native USB programming support + conflicts = stcgal + source = git+https://github.com/grigorig/stcgal + md5sums = SKIP + +pkgname = stcgal-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0e875b146070 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Marco Kundt <mrckndt@gmail.com> + +pkgname=stcgal-git +pkgver=r127.86e289b +pkgrel=1 +pkgdesc="Open Source STC MCU ISP flash tool" +arch=('any') +conflicts=('stcgal') +url="https://github.com/grigorig/stcgal" +license=('MIT') +depends=('python-pyserial' 'python-setuptools') +optdepends=('python-pyusb: Native USB programming support') +makedepends=('git') +source=(git+https://github.com/grigorig/stcgal) +md5sums=('SKIP') + +_gitname='stcgal' + +pkgver() { + cd "$srcdir/$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd ${srcdir}/${_gitname} + python setup.py install --root="$pkgdir/" --optimize=1 +} + |