aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unify/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2018-04-04 05:34:48 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-04-05 18:57:31 +0200
commit6c03f3989081e7eb74bac4a9ccb650ad8515494d (patch)
tree8ff784391899c1b71d951f19ff3a0935f4ac8822 /testing/unify/APKBUILD
parent8c15f6f42f7b7ce1d6f150797a0fd932b10554d7 (diff)
downloadaports-6c03f3989081e7eb74bac4a9ccb650ad8515494d.tar.bz2
aports-6c03f3989081e7eb74bac4a9ccb650ad8515494d.tar.xz
testing/unify: upgrade to 0.4, change to python3, modernize abuild
Diffstat (limited to 'testing/unify/APKBUILD')
-rw-r--r--testing/unify/APKBUILD38
1 files changed, 14 insertions, 24 deletions
diff --git a/testing/unify/APKBUILD b/testing/unify/APKBUILD
index b48e03eae4..69de694dc6 100644
--- a/testing/unify/APKBUILD
+++ b/testing/unify/APKBUILD
@@ -1,40 +1,30 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=unify
-pkgver=0.2
+pkgver=0.4
pkgrel=0
pkgdesc="A strings modification tool for (single/double) quote"
url="https://github.com/myint/unify"
arch="noarch"
license="MIT"
-depends="python2"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
-source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"
+depends="python3"
+makedepends="python3-dev py3-setuptools"
+source="$pkgname-$pkgver.tar.gz::https://github.com/myint/unify/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+build() {
+ cd "$builddir"
+ python3 setup.py build
}
-build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+check() {
+ cd "$builddir"
+ python3 setup.py test
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-md5sums="390b08eb4be0d59f0a774b61ddea7f97 unify-0.2.tar.gz"
-sha256sums="f51e92142eca61dcb65a675f3cb492e880f85d3504518d4bec6a76d83ab78724 unify-0.2.tar.gz"
-sha512sums="36cbdefd6897d3ee0816ea07a453b63b2f6aaabc525995b1cb35e530271e06674cbdda052ace430cadfa812862db7b76472541208fd2f9b5cbcd183feab947b4 unify-0.2.tar.gz"
+sha512sums="dc06553f13480eca832ed40e632d63581471017a36d6fa7f360b324657ac135bb74e803f3082ee03d1d31977000cf7724ff249f4183fae6a1ca9cfd9e69346e6 unify-0.4.tar.gz"