Error installing WebFontKitGenerator from the PKGBUILD I created

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>
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)."
#need to use `libhandy-git` from AUR because it needs libhandy-1.1
depends=('gtk3' 'gst-python' 'python-fonttools' 'libhandy-git' 'python-brotli')

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
==> ERROR: A failure occurred in build().

It seems to create an empty directory pkg/

You’re using the master branch, not a release tarball so you’ll need to use webfontkitgenerator instead of "$pkgname-$pkgver".

See VCS package guidelines for more info about using git branches as a source.

1 Like

The .tar.gz package extracts to the directory WebfontKitGenerator-master, so I had to use

arch-meson WebfontKitGenerator-master build

Aha. That’s what I get for I replying from my phone. :laughing:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.