# Maintainer: Doug Newgard # Maintainer : David Phillips # Contributor: Ricardo Leuck (original brewtarget-git PKGBUILD) pkgname=brewtarget pkgver=3.0.11 pkgrel=1 pkgdesc="Beer calculator compatible with BeerSmith. Generates instructions from the recipe and interactive mash designer." url="https://github.com/Brewtarget/brewtarget/" arch=('x86_64' 'i686') license=('GPL-3.0-or-later AND WTFPL AND (CC-BY-SA-3.0 OR LGPL-3.0-or-later) AND LGPL-2.1-only') depends=('qt5-base' 'qt5-multimedia' 'qt5-svg' 'xalan-c' 'xerces-c') makedepends=('boost' 'cmake' 'meson' 'ninja' 'pandoc' 'qt5-tools') source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/Brewtarget/brewtarget/archive/refs/tags/v${pkgver}.tar.gz") sha512sums=('879eea7208a4bb1f43aae6c760b7b95474db5a5e6f71239e9b01265f4c9e305de91773f5b3fdf9c961f3b0afe1c631489a945b13fcc8961b51208a5c7c673928') prepare() { cd ${pkgname}-${pkgver} # Disable boost-stacktrace_backtrace, requires an optional boost lib that's only built in Debianland sed -i "/boostModules += 'stacktrace_backtrace'/ {N;N;d}" meson.build # Make libbacktrace not required, we're not running the bt script sed -i "/compiler\.find_library('backtrace'/ {n;s/true/false/}" meson.build # Disable static linking sed -i 's/static : true/static : false/g' meson.build # Don't screw with Arch's build flags sed -i '/if compiler.get_id/ s/gcc/disable/' meson.build } build() { meson setup --prefix=/usr ${pkgname}-${pkgver} build ninja -C build } package() { DESTDIR="${pkgdir}" ninja install -C build install -Dm644 "${pkgname}-${pkgver}/"{COPYRIGHT,COPYING.WTFPL} -t "${pkgdir}/usr/share/licenses/${pkgname}/" }