summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54ac74d559d826c517e71e6e8ae6321a6da24c6a (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
# Maintainer: jakob <grandchild@gmx.net>
# Contributor: Christian Schwarz <me@cschwarz.com>

pkgname=servefile
pkgver=0.5.4
pkgrel=6
pkgdesc="Serve or receive files from shell via a small HTTP server"
arch=('any')
url="https://github.com/sebageek/servefile"
license=('GPL3')
depends=('python' 'python-cgi')
optdepends=('python-pyopenssl: HTTPS support')
makedepends=('git' 'python-pip')
checkdepends=('python-pytest' 'python-pyopenssl')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("https://github.com/sebageek/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('8ded2b42095bc1412a048103fcd7754edba6fe1bfd34f52b58cdf62f518da3bd')

# The tests are just to brittle -- disabled again.
# check() {
#     cd "$srcdir/$pkgname-$pkgver"
#     pytest
# }

package() {
	cd "$srcdir/$pkgname-$pkgver"
	# See https://github.com/pypa/pip/issues/3063 for the
	# reason behind "ignore-installed" & "--no-deps".
	# tl;dr: It's an almost decade-old pip-bug...
	python -m pip install --root="$pkgdir/" --ignore-installed --no-deps .
	install -D servefile.1 "$pkgdir/usr/share/man/man1/servefile.1"
}