summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author0x9fff002020-06-17 18:52:59 +0200
committer0x9fff002020-06-17 18:52:59 +0200
commitd737089ac61e21c4fbeb8961aca2beedd750e762 (patch)
tree5a0f2c76c29848c69f4ebc9a3b6b039fd9b948c3
parentbeec9e50dc8d791ece4f0e1b285b7aae4f8f3f98 (diff)
downloadaur-d737089ac61e21c4fbeb8961aca2beedd750e762.tar.gz
1.5.0-2
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore27
-rw-r--r--.gitignore_append1
-rw-r--r--PKGBUILD32
4 files changed, 52 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f9a7d4a6618..f31daa036ab 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,14 @@
-# Generated by mksrcinfo v8
-# Sat Mar 9 15:07:43 UTC 2019
pkgbase = python-nbt
pkgdesc = Named Binary Tag Reader/Writer
pkgver = 1.5.0
- pkgrel = 1
- url = http://github.com/twoolie/NBT
+ pkgrel = 2
+ url = https://github.com/twoolie/NBT
arch = any
license = MIT
- makedepends = python-distribute
+ makedepends = python-setuptools
depends = python
- source = python-nbt::git+https://github.com/twoolie/NBT.git#tag=version-1.5.0
- md5sums = SKIP
+ source = python-nbt-1.5.0.tar.gz::https://github.com/twoolie/NBT/archive/version-1.5.0.tar.gz
+ sha256sums = 068111bf5d9e73156cd6d627b3d69c782e89af96e328dd7e91a971a453ba9951
pkgname = python-nbt
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f12030797c0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,27 @@
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+pkg/
+src/
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+# archlinuxpackages linux
diff --git a/.gitignore_append b/.gitignore_append
new file mode 100644
index 00000000000..a92184e5a9b
--- /dev/null
+++ b/.gitignore_append
@@ -0,0 +1 @@
+# archlinuxpackages linux
diff --git a/PKGBUILD b/PKGBUILD
index 322072dd53e..69f3672a41d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,28 @@
-# Maintainer: Buce <dmbuce@gmail.com>
-# Automatically generated by pip2arch on 2011-01-16
+# Maintainer: 0x9fff00 <0x9fff00+git@protonmail.ch>
+# Contributor: Buce <dmbuce@gmail.com>
-pkgname=python-nbt
+_name=NBT
+pkgname=python-${_name,,}
pkgver=1.5.0
-pkgrel=1
+pkgrel=2
pkgdesc="Named Binary Tag Reader/Writer"
-url="http://github.com/twoolie/NBT"
+url="https://github.com/twoolie/$_name"
depends=('python')
-makedepends=('python-distribute')
+makedepends=('python-setuptools')
license=('MIT')
arch=('any')
-source=("$pkgname::git+https://github.com/twoolie/NBT.git#tag=version-$pkgver")
-md5sums=('SKIP')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/version-$pkgver.tar.gz")
+sha256sums=('068111bf5d9e73156cd6d627b3d69c782e89af96e328dd7e91a971a453ba9951')
-package() {
- cd "$srcdir/$pkgname"
- python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+build() {
+ cd "$_name-version-$pkgver"
+
+ python setup.py build
}
-# vim: set ts=4 sw=4 et:
+package() {
+ cd "$_name-version-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}