2022-05-10 19:30:26 +02:00
|
|
|
# vim: ft=bash
|
|
|
|
# Maintainer: Jef Roosens
|
|
|
|
|
|
|
|
pkgbase='vieter-git'
|
|
|
|
pkgname='vieter-git'
|
|
|
|
pkgver=0.2.0.r25.g20112b8
|
|
|
|
pkgrel=1
|
2022-07-17 13:38:46 +02:00
|
|
|
pkgdesc="Lightweight Arch repository server & package build system (development version)"
|
2022-05-10 19:30:26 +02:00
|
|
|
depends=('glibc' 'openssl' 'libarchive' 'sqlite')
|
2022-07-17 13:38:46 +02:00
|
|
|
makedepends=('git' 'vlang')
|
2022-05-10 19:30:26 +02:00
|
|
|
arch=('x86_64' 'aarch64')
|
2022-06-22 09:27:22 +02:00
|
|
|
url='https://git.rustybever.be/vieter-v/vieter'
|
2022-05-10 19:30:26 +02:00
|
|
|
license=('AGPL3')
|
2023-01-28 14:36:46 +01:00
|
|
|
source=(
|
|
|
|
"${pkgname}::git+https://git.rustybever.be/vieter-v/vieter#branch=dev"
|
|
|
|
"libvieter::git+https://git.rustybever.be/vieter-v/libvieter"
|
|
|
|
)
|
2023-01-28 15:22:04 +01:00
|
|
|
md5sums=('SKIP' 'SKIP')
|
2022-05-10 19:30:26 +02:00
|
|
|
provides=('vieter')
|
|
|
|
conflicts=('vieter')
|
|
|
|
|
|
|
|
pkgver() {
|
2023-01-28 14:36:46 +01:00
|
|
|
cd "${pkgname}"
|
2022-05-10 19:30:26 +02:00
|
|
|
|
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
2022-06-15 17:47:12 +02:00
|
|
|
prepare() {
|
2023-01-28 14:36:46 +01:00
|
|
|
cd "${pkgname}"
|
2022-06-15 17:47:12 +02:00
|
|
|
|
2023-01-28 14:36:46 +01:00
|
|
|
# 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-01-28 15:27:47 +01:00
|
|
|
cd src && v install
|
2022-06-15 17:47:12 +02:00
|
|
|
}
|
|
|
|
|
2022-05-10 19:30:26 +02:00
|
|
|
build() {
|
2023-01-28 14:36:46 +01:00
|
|
|
export VMODULES="${srcdir}/.vmodules"
|
2022-06-15 17:47:12 +02:00
|
|
|
|
2023-01-28 14:36:46 +01:00
|
|
|
cd "${pkgname}"
|
2022-05-10 19:30:26 +02:00
|
|
|
|
|
|
|
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.
|
2022-06-02 20:21:20 +02:00
|
|
|
CFLAGS= LDFLAGS= make man
|
2022-05-10 19:30:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-01-28 14:36:46 +01:00
|
|
|
install -dm755 "${pkgdir}/usr/bin"
|
|
|
|
install -Dm755 "${pkgname}/pvieter" "${pkgdir}/usr/bin/vieter"
|
2022-06-01 13:59:52 +02:00
|
|
|
|
2023-01-28 14:36:46 +01:00
|
|
|
install -dm755 "${pkgdir}/usr/share/man/man1"
|
|
|
|
install -Dm644 "${pkgname}/man"/*.1 "${pkgdir}/usr/share/man/man1"
|
2022-05-10 19:30:26 +02:00
|
|
|
}
|