mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/httpie: improve abuild
This commit is contained in:
parent
4adef1df77
commit
104da5ebb5
@ -7,31 +7,18 @@ pkgdesc="A CLI, cURL-like tool"
|
||||
url="https://github.com/jkbr/httpie"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
depends="python2 py-requests py-pygments"
|
||||
depends_dev=""
|
||||
depends="python2 py2-requests py-pygments"
|
||||
makedepends="python2-dev py-setuptools"
|
||||
install=""
|
||||
subpackages=""
|
||||
source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
|
||||
_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
|
||||
}
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
python2 setup.py build || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user