summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 14 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b35d08d631a..7248aee1100 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,24 @@
-# Maintainer: Riccardo Berto <riccardobrt at gmail>
-# previous: Andy Weidenbaum <archbaum@gmail.com>
-
-pkgname=python-tinydb
-pkgver=3.11.1
+pkgbase='python-tinydb'
+pkgname=('python-tinydb')
+_module='tinydb'
+pkgver='3.13.0'
pkgrel=1
-pkgdesc="Lightweight document oriented database optimized for your happiness"
-arch=('any')
+pkgdesc="TinyDB is a tiny, document oriented database optimized for your happiness :)"
+url="https://github.com/msiemens/tinydb"
depends=('python')
makedepends=('python-setuptools')
-url="https://github.com/msiemens/tinydb"
license=('MIT')
-options=(!emptydirs)
-source=($url/archive/v$pkgver.tar.gz)
-sha256sums=('SKIP')
+arch=('any')
+source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
+sha256sums=('a05c4c81e6e867c4f8a2e51c5236d0d897019aa5e9296f5947455b0bdd3c519d')
build() {
- cd "$srcdir/${pkgname#python-}-$pkgver"
-
- msg2 'Building...'
- python setup.py build
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py build
}
package() {
- cd "$srcdir/${pkgname#python-}-$pkgver"
-
- msg2 'Installing...'
- python setup.py install --root="$pkgdir" --optimize=1
-
+ depends+=()
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}