diff options
author | Ben | 2021-07-16 16:43:07 +0800 |
---|---|---|
committer | Ben | 2021-07-16 16:43:07 +0800 |
commit | 269314088737d04f5c30ce923091e33922aa6dfd (patch) | |
tree | 46d52e358c6b65cbdfaf1149282211fafce292e6 | |
download | aur-269314088737d04f5c30ce923091e33922aa6dfd.tar.gz |
1.5.0-1
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2a6da7b368b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = python-gpiod + pkgdesc = gpiod pure Python library with almost the same usage as libgpiodcxx + pkgver = 1.5.0 + pkgrel = 1 + url = https://github.com/hhk7734/python3-gpiod + arch = any + license = MIT + makedepends = python-setuptools + source = https://files.pythonhosted.org/packages/source/g/gpiod/gpiod-1.5.0.tar.gz + sha512sums = cdda2e8316278f7a0c257351aeb682bc90d27ff8c45bd3fbb0c37859f7075f48334d60d9fbb7bd064f87f5b4b911fd0f14ea4f7dc2198cf845da5d2baebab9c4 + +pkgname = python-gpiod diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..38f2aaae0e34 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Ben Song <bensongsyz@gmail.com> +pkgname=python-gpiod +_name=${pkgname#python-} +pkgver=1.5.0 +pkgrel=1 +pkgdesc="gpiod pure Python library with almost the same usage as libgpiodcxx" +arch=("any") +url="https://github.com/hhk7734/python3-gpiod" +license=("MIT") + + +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha512sums=('cdda2e8316278f7a0c257351aeb682bc90d27ff8c45bd3fbb0c37859f7075f48334d60d9fbb7bd064f87f5b4b911fd0f14ea4f7dc2198cf845da5d2baebab9c4') + +build() { + cd "$srcdir/${_name}-$pkgver" + + python setup.py build +} + +package() { + cd "$srcdir/${_name}-$pkgver" + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} |