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
# Contributor: Leah (ctucx) <leah@ctu.cx>
# Maintainer: Leah (ctucx) <leah@ctu.cx>
pkgname=alps
pkgver=0.0.1
pkgrel=1
pkgdesc="A simple and extensible webmail"
url="https://git.sr.ht/~migadu/alps"
arch="all"
license="MIT"
depends=""
makedepends="go"
install="${pkgname}.pre-install ${pkgname}.post-deinstall"
subpackages="${pkgname}-openrc"
_commit="5cef0aaff2b8b6ee3e00b566123517e241d8cfb8"
source="${pkgname}-${_commit}.tar.gz::https://git.sr.ht/~migadu/alps/archive/${_commit}.tar.gz
${pkgname}.initd
${pkgname}.confd"
builddir="$srcdir/${pkgname}-${_commit}/"
build() {
cd ${builddir}
go build -o alps ./cmd/alps
}
check() {
:
}
package() {
install -Dm755 ${builddir}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
install -Dm755 ${srcdir}/${pkgname}.initd ${pkgdir}/etc/init.d/${pkgname}
install -Dm644 ${srcdir}/${pkgname}.confd ${pkgdir}/etc/conf.d/${pkgname}
cd ${builddir}/themes;
find . -type f -exec install -Dm 755 "{}" "${pkgdir}/usr/share/alps/themes/{}" \;
}
sha512sums="865c1155f1093a3999d6935eec007119ae2258bfff33f05a1c025f3984aaa52249f977124cb1a016af24808f87ab0b2cd7e19e7a5018911ea121c5aa32c77fb6 alps-5cef0aaff2b8b6ee3e00b566123517e241d8cfb8.tar.gz
eaa40ace4ca554d015939da4a2fce8c12260d5a4d6741494766bbfc59ba3ccbd2acccfe1097ff4ac07f116758ba3ddd9899960572196513ea4641706cd45608c alps.initd
81d514b4f3773d4a28808cd72f32a8a080be388086919e718bff9128b40c2e491973e9d6cc2d94f2b45a64966cbdcc92a3945556b31904937c443f73a2e1a347 alps.confd"