diff options
author | Stefano Aguilera | 2022-11-15 13:23:41 -0300 |
---|---|---|
committer | Stefano Aguilera | 2022-11-15 13:23:41 -0300 |
commit | c478623e910df0459c9df2fb32927159f3a50e72 (patch) | |
tree | 42912835a52a695a4045e79ca020fa759468cc9e | |
download | aur-c478623e910df0459c9df2fb32927159f3a50e72.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ceb992bf995f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = monctl + pkgdesc = Monitor Control for Gigabyte G27Q + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/Gothem/monctl + arch = any + license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-hatchling + depends = python-qtpy + depends = python-pyusb + source = https://files.pythonhosted.org/packages/source/m/monctl/monctl-1.0.tar.gz + sha256sums = 4dccb6c6b7915f2fddb3a9f28e4c3812f62f7ce43b47fa5e3e2baec4b4786337 + +pkgname = monctl diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bd6011d27d3d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Stefano Aguilera <stefano.aguilera.95@live.cl> +pkgname=monctl +pkgver=1.0 +pkgrel=1 +pkgdesc="Monitor Control for Gigabyte G27Q" +arch=('any') +url="https://github.com/Gothem/monctl" +license=('MIT') +depends=(python-qtpy python-pyusb) +makedepends=(python-build python-installer python-wheel python-hatchling) +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") +sha256sums=('4dccb6c6b7915f2fddb3a9f28e4c3812f62f7ce43b47fa5e3e2baec4b4786337') + +build() { + cd "$pkgname-$pkgver" + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname-$pkgver" + echo $pkgdir + python -m installer --destdir="$pkgdir" dist/*.whl + + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm 644 resources/monctl.desktop "$pkgdir/usr/share/applications/monctl.desktop" + install -Dm 644 resources/monctl.svg "$pkgdir/usr/share/pixmaps/monctl.svg" + + install -Dm 755 resources/monctl "$pkgdir/usr/bin/monctl" +}
\ No newline at end of file |