diff options
author | Markus Koch | 2024-04-20 10:09:13 +0200 |
---|---|---|
committer | Markus Koch | 2024-04-20 10:09:13 +0200 |
commit | 166fc8a81028a858bca153144168ba472e28964f (patch) | |
tree | e9953ac5ed3bb93516119ddf150675981dd2c551 | |
download | aur-166fc8a81028a858bca153144168ba472e28964f.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..018a73f49d49 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = python-glasgow-git + pkgdesc = Software for the Glasgow Interface Explorer, the Scots Army Knife for electronics + pkgver = 0.2038 + pkgrel = 1 + url = https://github.com/GlasgowEmbedded/glasgow.git + arch = any + license = 0BSD + makedepends = python-build + makedepends = python-pdm + depends = python + depends = python-pyvcd + depends = python-libusb1 + depends = python-fx2 + depends = python-amaranth + depends = yosys + depends = nextpnr + depends = icestorm + provides = python-glasgow + conflicts = python-glasgow + source = git+https://github.com/GlasgowEmbedded/glasgow.git + sha256sums = SKIP + +pkgname = python-glasgow-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e88b53954432 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Markus Koch <markus@notsyncing.net> + +pkgname=python-glasgow-git +pkgver=0.2038 +pkgrel=1 +pkgdesc="Software for the Glasgow Interface Explorer, the Scots Army Knife for electronics" +arch=('any') +url='https://github.com/GlasgowEmbedded/glasgow.git' +license=('0BSD') +depends=(python python-pyvcd python-libusb1 python-fx2 python-amaranth yosys nextpnr icestorm) +makedepends=(python-build python-pdm) +source=("git+https://github.com/GlasgowEmbedded/glasgow.git") +sha256sums=('SKIP') +provides=(python-glasgow) +conflicts=(python-glasgow) + +pkgver() { + cd "$srcdir/glasgow" + #git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git rev-list HEAD --count | sed "s/^/0./" +} + +prepare() { + cd "$srcdir/glasgow" + + git submodule update --init +} + +build() { + cd "$srcdir/glasgow/software" + + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/glasgow/software" + + python -m installer --destdir="$pkgdir" dist/*.whl + + install -Dm 644 $srcdir/glasgow/config/70-glasgow.rules $pkgdir/etc/udev/rules.d/70-glasgow.rules +} |