I am trying to build an AUR package for WebfontKitGenerator. I decided to build the master branch, because the last released branch was compatible with libhandy-0.81, and may not be compatible with libhandy-1.0.3 (current version in repositories).
I created the following PKGBUILD
# Maintainer: Archisman Panigrahi <apandada1 at gmail dot com>
pkgname=webfontkitgenerator-git
pkgver=0.3.0
pkgrel=2
pkgdesc="Webfont Kit Generator is a simple utility that allows you to generate woff, woff2 and the necessary CSS boilerplate from non-web font formats (otf & ttf)."
arch=('any')
url="https://github.com/rafaelmardojai/webfontkitgenerator"
license=('GPL3')
#need to use `libhandy-git` from AUR because it needs libhandy-1.1
depends=('gtk3' 'gst-python' 'python-fonttools' 'libhandy-git' 'python-brotli')
makedepends=('meson')
source=("$pkgname-master.tar.gz::$url/archive/master.tar.gz")
sha256sums=('SKIP')
build() {
arch-meson "$pkgname-$pkgver" build
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
}
However, when I try to compile, I get the following error.
$ makepkg
==> Making package: webfontkitgenerator 0.3.0-2 (Monday 08 March 2021 11:05:04 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading webfontkitgenerator-master.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 142 100 142 0 0 159 0 --:--:-- --:--:-- --:--:-- 159
100 154k 0 154k 0 0 71819 0 --:--:-- 0:00:02 --:--:-- 120k
==> Validating source files with sha256sums...
webfontkitgenerator-master.tar.gz ... Skipped
==> Extracting sources...
-> Extracting webfontkitgenerator-master.tar.gz with bsdtar
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true webfontkitgenerator-0.3.0 build
ERROR: Neither directory contains a build file meson.build.
==> ERROR: A failure occurred in build().
Aborting...