vieter/PKGBUILD

53 lines
1.3 KiB
Bash
Raw Normal View History

# vim: ft=bash
# Maintainer: Jef Roosens
pkgbase='vieter'
2022-04-06 14:57:27 +00:00
pkgname='vieter'
2023-07-17 11:26:38 +00:00
pkgver='0.6.0'
pkgrel=1
pkgdesc="Lightweight Arch repository server & package build system"
depends=('glibc' 'openssl' 'libarchive' 'sqlite')
2023-02-19 14:54:31 +00:00
makedepends=('git' 'vieter-vlang')
2022-05-05 21:29:08 +00:00
arch=('x86_64' 'aarch64')
url='https://git.rustybever.be/vieter-v/vieter'
license=('AGPL3')
2023-07-17 11:53:20 +00:00
source=(
"$pkgname::git+https://git.rustybever.be/vieter-v/vieter#tag=${pkgver//_/-}"
"libvieter::git+https://git.rustybever.be/vieter-v/libvieter"
)
md5sums=('SKIP' 'SKIP')
prepare() {
2023-07-17 11:53:20 +00:00
cd "${pkgname}"
# Add the libvieter submodule
git submodule init
git config submodules.src/libvieter.url "${srcdir}/libvieter"
git -c protocol.file.allow=always submodule update
export VMODULES="${srcdir}/.vmodules"
2023-07-17 11:53:20 +00:00
cd src && v install
}
build() {
export VMODULES="$srcdir/.vmodules"
cd "$pkgname"
make prod
2022-06-02 18:14:44 +00: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 14:57:27 +00: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 18:14:44 +00:00
install -Dm644 "$pkgname/man"/*.1 "$pkgdir/usr/share/man/man1"
}