# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Maintainer: Future Linux Team pkgname=boulder pkgver=v1.0.2+r6+g5472ac5 pkgrel=2 pkgdesc="Extremely flexible and powerful, yet simple to use, package build tool for the Serpent OS project. " arch=('x86_64') url="https://github.com/serpent-os/boulder" license=('Zlib') depends=('moss' 'xxhash') makedepends=('git' 'meson' 'ldc' 'dmd' 'lmdb') backup=(usr/share/boulder/profiles.conf.d/default-x86_64.conf usr/share/boulder/macros/actions/autotools.yml usr/share/boulder/macros/actions/cargo.yml usr/share/boulder/macros/actions/cmake.yml usr/share/boulder/macros/actions/meson.yml usr/share/boulder/macros/actions/misc.yml usr/share/boulder/macros/actions/perl.yml usr/share/boulder/macros/actions/pgo.yml usr/share/boulder/macros/actions/python.yml usr/share/boulder/macros/arch/aarch64.yml usr/share/boulder/macros/arch/base.yml usr/share/boulder/macros/arch/x86_64-stage1.yml usr/share/boulder/macros/arch/x86_64-v3x.yml usr/share/boulder/macros/arch/x86_64.yml usr/share/boulder/macros/arch/x86.yml usr/share/boulder/macros/arch/emul32/x86_64.yml) source=(git+https://github.com/serpent-os/boulder.git git+https://github.com/serpent-os/serpent-style.git git+https://github.com/serpent-os/libmoss.git patch.patch) sha256sums=(SKIP SKIP SKIP 15fd0f9910f190b8063a7a4ab2fe137ad32ec2a0eb5b98ff92b7224c0d643d81) pkgver() { cd ${pkgname} git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' } prepare() { cd ${pkgname} git apply ${srcdir}/patch.patch } build() { cd ${pkgname} meson setup build \ -Dbuildtype=release \ --prefix=/usr meson compile -C build } package() { cd ${pkgname} meson install -C build --destdir ${pkgdir} }