Commit c80d1d64 authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

main/python2: use builddir

parent 99dd043c
...@@ -16,6 +16,8 @@ makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev ...@@ -16,6 +16,8 @@ makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev
source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.xz source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.xz
musl-find_library.patch musl-find_library.patch
unchecked-ioctl.patch" unchecked-ioctl.patch"
builddir="$srcdir/Python-$pkgver"
prepare() { prepare() {
default_prepare default_prepare
...@@ -32,7 +34,7 @@ prepare() { ...@@ -32,7 +34,7 @@ prepare() {
} }
build() { build() {
cd "$srcdir/Python-$pkgver" cd "$builddir"
export OPT="$CFLAGS" export OPT="$CFLAGS"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
...@@ -50,7 +52,7 @@ build() { ...@@ -50,7 +52,7 @@ build() {
} }
package() { package() {
cd "$srcdir/Python-$pkgver" cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1 make -j1 DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
rm "$pkgdir/usr/bin/2to3" || return 1 rm "$pkgdir/usr/bin/2to3" || return 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment