# Maintainer: Aqua-sama pkgname=smolbote-hg pkgdesc='Yet another no-frills browser' pkgver=0 pkgrel=1 _tag="" _describe="" _commit="" _branch="" url="https://neueland.iserlohn-fortress.net/smolbote" arch=('x86_64') license=('GPL3') # -hg replace the old -git package replaces=('smolbote-git') depends=('qt5-webengine>=5.11.0' 'boost-libs>=1.66.0') optdepends=('firejail: launch a sandboxed instance') makedepends=('git' 'cmake' 'pkg-config' 'go-md2man') # this is the central repository source=("git+https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote.git") sha512sums=('SKIP') validgpgkeys=(# Aqua-sama BB1C090188E3E32B375C13FD095DE26BC16D2E98) prepare() { cd smolbote _tag=$(git describe --tags --abbrev=0) _describe=$(git describe --tags) _commit=$(git rev-parse HEAD) _branch=$(git rev-parse --abbrev-ref HEAD) } pkgver() { cd smolbote git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { # generate makefile # option default # -DQtDeprecatedWarnings On # -DUseLibCpp Off # -DTests Off # -DPlasma Off cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=$pkgdir/usr/local \ -DVerTag=$_tag \ -DVerDescribe=$_describe \ -DVerCommit=$_commit \ -DVerBranch=$_branch \ $srcdir/smolbote # Build make } package() { # Install make install # icon and .desktop install -Dm644 "${srcdir}/smolbote/data/poi.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/poi.svg" install -Dm644 "${srcdir}/smolbote/linux/poi.desktop" "${pkgdir}/usr/share/applications/poi.desktop" # firejail profile install -Dm644 "${srcdir}/smolbote/data/poi.profile" "${pkgdir}/usr/local/lib/smolbote/poi.profile" msg2 "Install manpage" go-md2man -in $srcdir/smolbote/linux/man/smolbote.md -out smolbote.7 gzip smolbote.7 install -Dm644 smolbote.7.gz $pkgdir/usr/local/man/man7/smolbote.7.gz }