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
source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.xz
musl-find_library.patch
unchecked-ioctl.patch"
builddir="$srcdir/Python-$pkgver"
prepare() {
default_prepare
......@@ -32,7 +34,7 @@ prepare() {
}
build() {
cd "$srcdir/Python-$pkgver"
cd "$builddir"
export OPT="$CFLAGS"
./configure \
--build=$CBUILD \
......@@ -50,7 +52,7 @@ build() {
}
package() {
cd "$srcdir/Python-$pkgver"
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
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