mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 02:36:34 +02:00
45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=alps
|
|
pkgver=0_git20230807
|
|
pkgrel=11
|
|
_commit=652ea9c7885a6c508d3c69c37b7c65e5bbe4fe77
|
|
pkgdesc="Simple and extensible webmail"
|
|
url="https://sr.ht/~migadu/alps/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
install="$pkgname.pre-install"
|
|
subpackages="$pkgname-openrc"
|
|
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~migadu/alps/archive/$_commit.tar.gz
|
|
fix-statics-dir.patch
|
|
|
|
alps.confd
|
|
alps.initd
|
|
"
|
|
builddir="$srcdir/alps-$_commit"
|
|
options="!check net" # no tests in upstream
|
|
|
|
build() {
|
|
go build -o alps ./cmd/alps
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 alps "$pkgdir"/usr/bin/alps
|
|
|
|
install -dm755 "$pkgdir"/usr/lib/alps
|
|
cp -r themes "$pkgdir"/usr/lib/alps
|
|
for asset in plugins/*/public/*.html plugins/*/public/**/*; do
|
|
install -Dm644 "$asset" "$pkgdir"/usr/lib/alps/"$asset"
|
|
done
|
|
|
|
install -Dm755 "$srcdir"/alps.initd "$pkgdir"/etc/init.d/alps
|
|
install -Dm644 "$srcdir"/alps.confd "$pkgdir"/etc/conf.d/alps
|
|
}
|
|
|
|
sha512sums="
|
|
17161088b6cd50d07e24deb90b54e17a54f0e634f9101aec1565cf16a1960ee9a086004d76052c3385fe93e4f71aa4335f4d1656523ae59dcdb8d899fccd3e07 alps-652ea9c7885a6c508d3c69c37b7c65e5bbe4fe77.tar.gz
|
|
c60c4a1ed52c81fe90404fa1719be6785b9a6ed0ff7e56df5ce188406eb3ebedd9b8b5884ed363cecefb1c76ca33834704e173edfd57bf8d016118ce92937317 fix-statics-dir.patch
|
|
61c1b05851ae05fbf51cb8eb060c5677de7145a07dac3a194a3f7513b2ff3bf5f3792a749d1a2eef09fc6378f2fbf2021cc49dffe652f51230120c40a7062b6c alps.confd
|
|
6e109577d662ce61d2b753e5b82237827646f10d0af02b10b3f184a10bb747c3c8303e7d20a5cc2b7c31ac4a6f3aef62290c068868e647c9b1ce711dfb6e025a alps.initd
|
|
"
|