# Maintainer: Jesus E. pkgname=sscg pkgver=2.3.3 pkgrel=1 pkgdesc="Simple Signed Certificate Generator" url="https://github.com/sgallagher/sscg" license=('GPL-3') arch=('i686' 'x86_64') depends=('libressl' 'popt' 'talloc' 'ding-libs') makedepends=('help2man' 'meson') source=("https://github.com/sgallagher/sscg/archive/refs/tags/${pkgname}-${pkgver}.tar.gz") sha512sums=('09f3f32f83b7aca6aa9a8f3269e7eda58218030e2cd3f23f7f6d8abdc419cbf002c8475bab8c6881803765a90ca23b6dcf629eab30709c8c79dc71d41f84f499') prepare() { mv $pkgname-$pkgname-$pkgver $pkgname-$pkgver } build() { cd $pkgname-$pkgver meson --prefix=/usr \ --buildtype plain \ --auto-features enabled \ -D b_lto=true \ -D b_pie=true \ build ninja -C build } package() { cd $pkgname-$pkgver DESTDIR="${pkgdir}" meson install -C build install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/$pkgname }