diff options
author | Daniel Nakhimovich | 2020-04-11 03:06:07 -0400 |
---|---|---|
committer | Daniel Nakhimovich | 2020-04-11 03:06:07 -0400 |
commit | 08521fd4729c1ec6eae0edb4b3c30fd316f4f496 (patch) | |
tree | 7ea117eb6a5ed4e09f9b098257510180bf6dc13a | |
download | aur-08521fd4729c1ec6eae0edb4b3c30fd316f4f496.tar.gz |
first
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..612564e12112 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-nxt-python + pkgdesc = A python driver/interface for the Lego Mindstorms NXT robot based on NXT_python. + pkgver = 3.0 + pkgrel = 1 + url = https://github.com/Eelviny/nxt-python + arch = any + license = GPL3 + makedepends = python-setuptools + depends = python + provides = python-nxt-python + conflicts = python-nxt-python + source = https://github.com/Eelviny/nxt-python/archive/d532427e90b526ecfd73efe2d566ec69f0c4728a.zip + sha256sums = 78028f567b8722502d8c97dda479a866b5a3e2f9a9563a02863532ba5ca4660b + +pkgname = python-nxt-python + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2a62a3ca2e3b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: DanManN <dnahimov@gmail.com> +# Python package author: Elvin Luff <elvin@eelviny.me> + +_pkgname=nxt-python +_author=Eelviny +_pkgver=d532427e90b526ecfd73efe2d566ec69f0c4728a +pkgname=python-$_pkgname +pkgver=3.0 +pkgrel=1 +pkgdesc="A python driver/interface for the Lego Mindstorms NXT robot based on NXT_python." +arch=('any') +url="https://github.com/$_author/$_pkgname" +license=('GPL3') +depends=('python') +makedepends=('python-setuptools') +provides=("python-$_pkgname") +conflicts=("python-$_pkgname") +source=("https://github.com/$_author/$_pkgname/archive/$_pkgver.zip") +sha256sums=('78028f567b8722502d8c97dda479a866b5a3e2f9a9563a02863532ba5ca4660b') + +build() { + cd "$srcdir/$_pkgname-$_pkgver" + python setup.py build +} + +package() { + cd "$srcdir/$_pkgname-$_pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 + # install -Dm644 LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |