# Maintainer: Jesus E. pkgname=expac pkgver=10 pkgrel=2 pkgdesc="pacman database extraction utility" arch=('i686' 'x86_64') url='https://github.com/falconindy/expac' license=('Expat') depends=('pacman') makedepends=('perl' 'meson') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/falconindy/expac/archive/refs/tags/${pkgver}.tar.gz") sha512sums=('3ff2868a2c734b6e68091ebd8f733709b9846031f1d1c20794385262a1e245ed920342428316b2716a995bd9da81c41c668dc12a7d99c82eece006c7b84f843d') prepare() { cd ${pkgname}-${pkgver} sed '/\*\//q' src/expac.c >LICENSE } build() { cd ${pkgname}-${pkgver} meson build ninja -C build } package() { cd ${pkgname}-${pkgver} DESTDIR=$pkgdir ninja -C build install install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }