I wrote the following PKGBUILD by a trial and error process on another PKGBUILD.
It does seem to, well, do something. How far it is from a reasonable quality
PKGBUILD?
_pkgname=northstar-web-browser
pkgname="${_pkgname}"
pkgver=1.0.16.r33.g19b27d5
pkgrel=1
pkgdesc="A minimalist web browser written from scratch in C"
arch=('x86_64')
url="https://nordstjernen.org/northstar-browser/"
license=('GPL-3.0-or-later')
depends=('gtk4' 'uchardet')
makedepends=('meson' 'cmake')
_srcdir="${_pkgname}"
options=('!debug' 'strip')
source=( 'git+https://github.com/nordstjernen-web/northstar-web-browser.git' )
sha256sums=('SKIP')
pkgver() {
set -u
cd "${_srcdir}"
git describe --tag --long | sed -e 's:^v::g' -e 's/\([^-]*-g\)/r\1/' -e
's/-/./g'
set +u
}
prepare() {
set -u
cd "${_srcdir}"
meson setup build
}
build() {
cd "$pkgname"
meson compile -C build
}
package() {
cd "$pkgname"
DESTDIR="$pkgdir" meson install -C build
}
# vim: set ts=2 sw=2 et: