# Maintainer: Leonidas Spyropoulos pkgname=auracle-git _pkgname="${pkgname%-git}" pkgver=r373.fc335fc pkgrel=1 pkgdesc='A flexible client for the AUR' arch=('x86_64' 'i686') url="https://github.com/inglor/auracle" license=('MIT') depends=('pacman' 'libcurl.so' 'libsystemd') makedepends=('meson' 'git' 'perl' 'systemd') checkdepends=('python' 'fakechroot' 'gtest') provides=("$_pkgname") conflicts=("$_pkgname") source=("git+https://github.com/inglor/auracle") b2sums=('SKIP') pkgver() { cd "$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "$_pkgname" local filename for filename in "${source[@]}"; do if [[ "$filename" =~ \.patch$ ]]; then echo "Applying patch ${filename##*/}" patch -p1 -N -i "$srcdir/${filename##*/}" fi done } build() { cd "$_pkgname" local meson_args=( --prefix=/usr --buildtype=plain --default-library=static ) [[ -d build ]] && meson_args+=(--wipe) # Some tests fail with these enabled CFLAGS=${CFLAGS/,-D_GLIBCXX_ASSERTIONS/} CXXFLAGS="${CFLAGS}" meson build "${meson_args[@]}" meson compile -C build } check() { cd "$_pkgname" meson test -C build } package () { cd "$_pkgname" DESTDIR="$pkgdir" meson install -C build --skip-subprojects install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim: et ts=2 sw=2