summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBumsik Kim2018-06-09 22:22:15 -0400
committerBumsik Kim2018-06-09 22:22:15 -0400
commitd6959a2ca716fb8abdec9799dac6857c396c6cd9 (patch)
treef9c16328ed03eb636ec6ba9c8ef5e2da1b672644
parent1f402f08e528006c79e3375fba793b69c4d34af8 (diff)
downloadaur-d6959a2ca716fb8abdec9799dac6857c396c6cd9.tar.gz
Switched from setuptools to pip
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 3 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ad1196124bc..a43f6f578ef 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,7 +6,7 @@ pkgbase = virtscreen
arch = i686
arch = x86_64
license = GPL
- makedepends = python-setuptools
+ makedepends = python-pip
depends = xorg-xrandr
depends = x11vnc
depends = python-pyqt5
diff --git a/PKGBUILD b/PKGBUILD
index 384f28e4144..af14cb91330 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ url="https://github.com/kbumsik/VirtScreen"
license=('GPL')
groups=()
depends=('xorg-xrandr' 'x11vnc' 'python-pyqt5' 'python-twisted' 'python-netifaces' 'python-qt5reactor')
-makedepends=('python-setuptools')
+makedepends=('python-pip')
optdepends=(
'arandr: for display settings option'
)
@@ -24,15 +24,9 @@ source=(https://github.com/kbumsik/$_pkgname_camelcase/archive/$pkgver.tar.gz)
noextract=()
sha256sums=('73cb4016b06ccb7a18a7aefc5822119655f1c260915bc34218d3b04ac86af3d8')
-build() {
- echo "$pkgdir"
- cd $_pkgname_camelcase-$pkgver
- /usr/bin/python3 setup.py build
-}
-
package() {
cd $_pkgname_camelcase-$pkgver
- /usr/bin/python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ PIP_CONFIG_FILE=/dev/null /usr/bin/pip install --isolated --root="$pkgdir" --ignore-installed --no-deps .
# These are already installed by setup.py
# install -Dm644 "data/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
# install -Dm644 "data/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"