This repository has been archived by the owner on May 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 256
/
PKGBUILD
59 lines (50 loc) · 1.44 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Xinkai <[email protected]>
pkgdesc="An attempt to bring Xware (Xunlei on routers) to desktop Linux."
url="https://github.com/Xinkai/XwareDesktop/wiki"
_commit=""
_md5sums=""
pkgver=""
pkgrel=
pkgname="xware-desktop"
arch=("i686" "x86_64")
conflicts=("xware_desktop-git" "xware_desktop" "xware-desktop-git")
replaces=("xware_desktop-git" "xware_desktop" "xware-desktop-git")
license=("GPL" "custom")
makedepends=("python-pyqt5" "coffee-script" "chrpath" "findutils" "sed")
if test "$CARCH" == x86_64; then
makedepends+=("gcc-multilib")
else
makedepends+=("gcc")
fi
depends=("python-pyqt5" "qt5-webkit" "qt5-multimedia" "libcap" "python-pyinotify" "desktop-file-utils" "chrpath")
if test "$CARCH" == x86_64; then
depends+=("lib32-glibc" "lib32-zlib")
else
depends+=("glibc" "zlib")
fi
if [ ! -f .localdev ]; then
source=("${_commit}.tar.gz::https://github.com/Xinkai/XwareDesktop/archive/${_commit}.tar.gz")
md5sums=(${_md5sums})
_nonlocal=1
fi
install=xware-desktop.install
build() {
if test $_nonlocal; then
cd XwareDesktop-${_commit}
else
cd ../
fi
QT_SELECT=5 make all
}
package() {
if test $_nonlocal; then
cd XwareDesktop-${_commit}
else
cd ../
fi
make DESTDIR=${pkgdir} install
# Set git hash if nonlocal
if test $_nonlocal; then
echo -e "\n__githash__ = \"${_commit}\"\n" >> ${pkgdir}/opt/xware-desktop/shared/__init__.py
fi
}