Skip to content

Commit

Permalink
#5, AUR: Switched from setuptools to pip for package builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kbumsik committed Jun 10, 2018
1 parent ee0efaf commit 7941f19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package/archlinux/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 2 additions & 8 deletions package/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
Expand All @@ -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"
Expand Down

0 comments on commit 7941f19

Please sign in to comment.