blob: edd23cdcc96381dd9ff061d0879b1ae8c94b3fc2 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports
_pkgname=geomyidae
pkgname=${_pkgname}-git
pkgver=0.238.6fcf2a6
pkgrel=1
pkgdesc="A gopher server daemon"
arch=('i686' 'x86_64')
url="http://r-36.net/scm/geomyidae"
license=('MIT')
makedepends=('git')
conflicts=('geomyidae')
provides=('geomyidae')
backup=("etc/conf.d/${_pkgname}")
source=("git://r-36.net/${_pkgname}"
'service'
'confd'
'sysusers'
'geomyidae-chroot.patch'
'geomyidae-journald.patch')
sha256sums=('SKIP'
'2e26b4fce0590d68b27c0d70b7d5302ac4c14f9888d52020efc372bc327d6f6b'
'd8a791643036d8cfccd7ffd64df7a99f2da5a3b3306d32b59a625c0285c1b9a1'
'816de9b6211254663c0e2bbce039f869b1efc4b8fdce8bd4fdb676e8a722cce4'
'813ca5000327453e91259119805474e78d0d31e81404a823cf47171cca1cb76f'
'caa4378e7b64790d0eeb77682749e81684124065bac826f4b0905c7905bcded5')
pkgver() {
cd "${_pkgname}"
echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}
prepare() {
cd "${_pkgname}"
# Fix chroot
patch -p1 -i ../geomyidae-chroot.patch
# Log with systemd-journald
patch -p1 -i ../geomyidae-journald.patch
# Arch Linux uses /srv
sed -i 's|/var/gopher|/srv/gopher|g' geomyidae.8 main.c
# Install to /usr
sed -i 's|/usr/local|/usr|g' Makefile
# Use Arch Linux standard CFLAGS
sed -i 's|CFLAGS = -O2 -Wall|CFLAGS = $(FLAGS)|g' Makefile
}
build() {
cd "${_pkgname}"
make FLAGS="${CFLAGS}"
}
package() {
cd "${_pkgname}"
make install DESTDIR="${pkgdir}"
install -dm755 "${pkgdir}/srv/gopher"
install -Dm644 "${srcdir}/confd" \
"${pkgdir}/etc/conf.d/${_pkgname}"
install -Dm644 "${srcdir}/service" \
"${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
install -Dm644 "${srcdir}/sysusers" \
"${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf"
install -Dm644 LICENSE \
"${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -dm755 "${pkgdir}/usr/share/doc/${_pkgname}"
install -m644 README CGI LINKS index.gph \
"${pkgdir}/usr/share/doc/${_pkgname}/"
install -dm755 "${pkgdir}"/usr/share/vim/vimfiles/{ftdetect,syntax}
install -m644 gph/vim/ftdetect/gph.vim \
"${pkgdir}/usr/share/vim/vimfiles/ftdetect"
install -m644 gph/vim/syntax/gph.vim \
"${pkgdir}/usr/share/vim/vimfiles/syntax"
}
|