68 lines
1.9 KiB
Bash
68 lines
1.9 KiB
Bash
# 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 <future_linux@163.com>
|
|
pkgname=boulder
|
|
pkgver=v1.0.2+r6+g5472ac5
|
|
pkgrel=1
|
|
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
|
|
513ebe2dd2ad9811fadb9c08e8afca63c9dd8118e38226f2e2d9f0efb5bf3964)
|
|
|
|
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}
|
|
}
|