# Maintainer: Aqua-sama pkgname=smolbote-git pkgdesc='Yet another no-frills browser' pkgver=r0 pkgrel=1 url="https://neueland.iserlohn-fortress.net/smolbote" install="smolbote.install" arch=('x86_64') license=('GPL3') depends=('qt5-webengine>=5.11.0' 'boost-libs>=1.66.0') optdepends=('firejail: launch a sandboxed instance') makedepends=('git' 'meson' 'pkg-config' 'python-kconfiglib' 'asciidoctor') # this is the central repository source=("git+https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote.git" "git+https://github.com/itay-grudev/SingleApplication.git") sha512sums=('SKIP' 'SKIP') #validgpgkeys=(# Aqua-sama # BB1C090188E3E32B375C13FD095DE26BC16D2E98) prepare() { cd $srcdir/smolbote git submodule init git config submodule.3rd-party/SingleApplication/SingleApplication.git.url $srcdir/SingleApplication git submodule update 3rd-party/SingleApplication/SingleApplication.git } pkgver() { cd smolbote echo r$(git rev-list --count HEAD)-$(git rev-parse --short HEAD) | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { if [ ! -d $srcdir/build ]; then mkdir $srcdir/build fi cd $srcdir/smolbote # For a list of configureable options, check smolbote/meson_options.txt, or # run `meson configure` in $srcdir/build # --buildtype=plain - meson won't add any flags to the command line # --prefix=... - install prefix # --auto-features=disabled - features should be explicitly enabled meson --buildtype=plain --prefix=/usr/local --auto-features=disabled $srcdir/build cd $srcdir/build # Toggle features #meson configure -DBreakpad=enabled meson configure -DPlasma=enabled meson configure -Dmanpage=enabled # Build ninja } package() { # Install cd $srcdir/build DESTDIR="$pkgdir" ninja install }