summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b74be0b2b727c55331e2cf1885aee1b8c21bc904 (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
# Maintainer: pvdp <pvdp at email dot com>
# Contributor: hcra <hcra at u53r dot space>

pkgname=weborf-git
_pkgname="weborf"
pkgver=0.19.r2.g447d98d
pkgrel=1
pkgdesc="Minimal HTTP server to share your files"
arch=('any')
url="https://ltworf.github.io/weborf"
license=('GPL3')
depends=('openssl' 'file')
makedepends=('pacman>=5.1' 'git' 'sudo' 'findutils')
optdepends=('qweborf-git: graphical user interface')
conflicts=('weborf')
source=("git+https://github.com/ltworf/weborf.git#branch=master")
sha256sums=("SKIP")

pkgver() {
	cd "$srcdir/$_pkgname"

	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$_pkgname"

	autoreconf -f -i
	./configure --prefix=/usr --sysconfdir=/etc
	make VERSION="$pkgver"
}

package() {
	cd "$srcdir/$_pkgname"

	make DESTDIR="$pkgdir" VERSION="$pkgver" install

	cd "$pkgdir"
	find lib -type f -exec install -D {} usr/{} \;
	rm -r lib
}