1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-12 11:21:53 +00:00

#5, AUR: Switched from setuptools to pip for package builder

This commit is contained in:
Bumsik Kim 2018-06-09 22:26:22 -04:00
parent ee0efafa02
commit 7941f1909a
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
3 changed files with 7 additions and 9 deletions

View file

@ -60,6 +60,10 @@ arch-install: arch-update
cd package/archlinux
makepkg -si
arch-build: arch-update
cd package/archlinux
makepkg
arch-upload: arch-update
cd package/archlinux
git clone ssh://aur@aur.archlinux.org/virtscreen.git

View file

@ -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

View file

@ -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"