aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-12-19 19:24:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-12-19 19:35:04 +0000
commit2fb4d03aef8e3de200880cf48dd30c9375118aaa (patch)
treec98d97f34b38cd4b860b043e8f390af141c769d9
parent6c465ce6f5ebdf791b1587bed219c9fcadf4ba63 (diff)
downloadaports-2fb4d03aef8e3de200880cf48dd30c9375118aaa.tar.bz2
aports-2fb4d03aef8e3de200880cf48dd30c9375118aaa.tar.xz
community/httpie: merge changes from testing/httpie
update license, homepage, add check and modernize
-rw-r--r--community/httpie/APKBUILD16
-rw-r--r--testing/httpie/APKBUILD29
2 files changed, 11 insertions, 34 deletions
diff --git a/community/httpie/APKBUILD b/community/httpie/APKBUILD
index 6064326f98..9c89a13e07 100644
--- a/community/httpie/APKBUILD
+++ b/community/httpie/APKBUILD
@@ -1,25 +1,31 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+# Contributor: Daniel Isaksen <d@duniel.no>
pkgname=httpie
pkgver=0.9.9
-pkgrel=0
+pkgrel=1
pkgdesc="A CLI, cURL-like tool"
-url="https://github.com/jkbr/httpie"
+url="https://httpie.org/"
arch="noarch"
-license="BSD"
+license="BSD-3-Clause"
depends="python3 py3-requests py3-pygments"
makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
+check() {
+ cd "$builddir"
+ python3 setup.py check
+}
+
build() {
cd "$builddir"
- python3 setup.py build || return 1
+ python3 setup.py build
}
package() {
cd "$builddir"
- python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="e9adb1ecf9a25b57c634f35199bf1f8fbe4136179c0ba0d6032a41ae786da9344f54436f91d89e624c154bdca325f94c637364a934fc2d5742b83056434f7e4c httpie-0.9.9.tar.gz"
diff --git a/testing/httpie/APKBUILD b/testing/httpie/APKBUILD
deleted file mode 100644
index ffddb7d931..0000000000
--- a/testing/httpie/APKBUILD
+++ /dev/null
@@ -1,29 +0,0 @@
-# Maintainer: Daniel Isaksen <d@duniel.no>
-pkgname=httpie
-pkgver=0.9.8
-pkgrel=0
-pkgdesc="HTTPie is a command line HTTP client with an intuitive UI, JSON support, syntax highlighting and more"
-url="https://httpie.org/"
-arch="noarch"
-license="BSD-3-Clause"
-depends="py3-requests py3-pygments"
-makedepends=""
-source="$pkgname-$pkgver.tar.gz::https://github.com/jakubroztocil/$pkgname/archive/$pkgver.tar.gz"
-builddir="$srcdir"/$pkgname-$pkgver
-
-check() {
- cd "$builddir"
- python3 setup.py check
-}
-
-build() {
- cd "$builddir"
- python3 setup.py build
-}
-
-package() {
- cd "$builddir"
- python3 setup.py install --prefix=/usr --root="$pkgdir"
-}
-
-sha512sums="dbf0bc1688f6fce99c245375b2059ab44c9d1b3dddd2144fab264545545d34b38d572017f468896d6e8cd8eeb94798ed625a085449b0fe0ddbb8b775c119413c httpie-0.9.8.tar.gz"