vieter/PKGBUILD

43 lines
1.1 KiB
Bash
Raw Normal View History

# vim: ft=bash
# Maintainer: Jef Roosens
pkgbase='vieter'
2022-04-06 16:57:27 +02:00
pkgname='vieter'
2022-06-13 21:32:35 +02:00
pkgver='0.3.0'
pkgrel=1
2022-06-02 20:14:44 +02:00
pkgdesc="Vieter is a lightweight implementation of an Arch repository server."
depends=('glibc' 'openssl' 'libarchive' 'sqlite')
makedepends=('git' 'vieter-v')
2022-05-05 23:29:08 +02:00
arch=('x86_64' 'aarch64')
url='https://git.rustybever.be/vieter/vieter'
license=('AGPL3')
source=("$pkgname::git+https://git.rustybever.be/vieter/vieter#tag=${pkgver//_/-}")
md5sums=('SKIP')
prepare() {
export VMODULES=.vmodules
cd "$pkgname/src" && v install
}
build() {
export VMODULES=.vmodules
cd "$pkgname"
make prod
2022-06-02 20:14:44 +02:00
# The default CFLAGS for some reason causes vieter to segfault if used
# inside the PKGBUILD. As a workaround, we use tcc to build a debug build
# that does work, so we can generate the manpages.
CFLAGS= LDFLAGS= make man
}
2022-04-06 16:57:27 +02:00
package() {
install -dm755 "$pkgdir/usr/bin"
install -Dm755 "$pkgname/pvieter" "$pkgdir/usr/bin/vieter"
install -dm755 "$pkgdir/usr/share/man/man1"
2022-06-02 20:14:44 +02:00
install -Dm644 "$pkgname/man"/*.1 "$pkgdir/usr/share/man/man1"
}