blob: e0bda6a6c1b39b08655e35e9f0c2edcf5a11a0cd (
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
|
# Maintainer: Cody Schafer <dev@codyps.com>
pkgrel=2
_bpn=diod
pkgname=$_bpn-git
pkgdesc="A multi-threaded, user space file server that speeks 9P2000.L"
license=('GPL2')
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/chaos/diod.git"
source=("git+https://github.com/chaos/diod.git")
md5sums=('SKIP')
conflicts=("$_bpn")
provides=("$_bpn")
# If munge is disabled (via configure script), it can be omitted entirely
# LUA can be disable in configure, but config files are lua. Unclear what fallback is.
# libwrap can be disabled, if desired
makedepends=('git')
depends=('lua' 'libwrap' 'libcap' 'bash')
optdepends=('munge')
# from https://wiki.archlinux.org/index.php/VCS_package_guidelines
pkgver=1.0.24.r89.g3da6e52
pkgver() {
cd "$srcdir/$_bpn"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/$_bpn"
./autogen.sh
}
build () {
cd "$srcdir/$_bpn"
./configure --prefix=/usr --with-ncurses --sysconfdir=/etc --sbindir=/usr/bin
make
}
package () {
cd "$srcdir/$_bpn"
make "DESTDIR=$pkgdir" install
}
|