summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f641226c34e6480ad97cb1a7b2c01df49cbdd47f (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
# Maintainer: pvdp <pvdp at email dot com>
# Contributor: hcra <hcra at u53r dot space>
# Contributor: Pico Paco Nano <founderofjp@gmail.com>
# Contributor: felix.s <felix.von.s@posteo.de>

pkgname=qweborf
_pkgname=weborf
pkgver=0.19
pkgrel=1
pkgdesc="Minimal HTTP server to share your files - Qt frontend"
arch=(any)
url="https://ltworf.github.io/weborf"
license=(GPL3)
depends=('python' 'weborf' 'desktop-file-utils')
makedepends=('python-pyqt5' 'python-setuptools')
conflicts=("$pkgname-git")
source=(https://github.com/ltworf/weborf/releases/download/$pkgver/weborf_$pkgver.orig.tar.gz)
sha256sums=('2129ac2244fe219f348507c442270ba8693ec3282fc39e61bdab892a8e0e75d4')

build() {
    cd "$srcdir/$_pkgname-$pkgver/qweborf"

    pyuic5 qweborf/main.ui > qweborf/main.py
    gzip man/qweborf.1
    python setup.py build
}

package() {
    cd "$srcdir/$_pkgname-$pkgver/qweborf"

    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
    install -Dm 0644 man/qweborf.1.gz "$pkgdir/usr/share/man/man1/qweborf.1.gz"
    install -Dm 0755 qweborf/qweborf "$pkgdir/usr/bin/qweborf"
    install -Dm 0755 integration/qweborf.desktop "$pkgdir/usr/share/applications/qweborf.desktop"
}