archlinux: build imgconverter with both python2 and python3
This commit is contained in:
parent
f7cd2b2a76
commit
19cb61a0ed
@ -13,7 +13,7 @@ arch=("x86_64")
|
|||||||
url="http://qubes-os.org/"
|
url="http://qubes-os.org/"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
groups=()
|
groups=()
|
||||||
makedepends=(gcc make pkgconfig 'qubes-libvchan' 'python-setuptools')
|
makedepends=(gcc make pkgconfig 'qubes-libvchan' 'python-setuptools' 'python2-setuptools')
|
||||||
checkdepends=()
|
checkdepends=()
|
||||||
optdepends=()
|
optdepends=()
|
||||||
provides=()
|
provides=()
|
||||||
@ -31,11 +31,16 @@ md5sums=(SKIP)
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
||||||
for source in qrexec-lib udev qmemman core kernel-modules Makefile dracut; do
|
for source in qrexec-lib udev qmemman core kernel-modules Makefile dracut imgconverter; do
|
||||||
(ln -s $srcdir/../$source $srcdir/$source)
|
(ln -s $srcdir/../$source $srcdir/$source)
|
||||||
done
|
done
|
||||||
|
|
||||||
make all
|
# Build all with python2
|
||||||
|
PYTHON=python2 make all
|
||||||
|
|
||||||
|
# Build imgconverter with python3
|
||||||
|
make -C imgconverter all
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +48,11 @@ package_qubes-vm-utils() {
|
|||||||
depends=(qubes-libvchan imagemagick python2-cairo)
|
depends=(qubes-libvchan imagemagick python2-cairo)
|
||||||
install=PKGBUILD-qubes-vm-utils.install
|
install=PKGBUILD-qubes-vm-utils.install
|
||||||
|
|
||||||
make install DESTDIR=$pkgdir LIBDIR=/usr/lib SYSLIBDIR=/usr/lib SBINDIR=/usr/bin
|
# Install all for python2
|
||||||
|
PYTHON=python2 make install DESTDIR=$pkgdir LIBDIR=/usr/lib SYSLIBDIR=/usr/lib SBINDIR=/usr/bin
|
||||||
|
|
||||||
|
# Install imgconverter as python3
|
||||||
|
make -C imgconverter install DESTDIR=$pkgdir LIBDIR=/usr/lib SYSLIBDIR=/usr/lib SBINDIR=/usr/bin
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user