# Maintainer: Alex Medvědů pkgname=ppm-git _pkgname=ppm _gitname=plugin-manager pkgver=continuous.r0.g67c3d18 pkgrel=1 pkgdesc='A plugin manager for the Pragtical editor' arch=('x86_64' 'aarch64') url="https://github.com/pragtical/plugin-manager" license=('MIT') depends=('pragtical' 'lua' 'zlib' 'libzip' 'libgit2' 'mbedtls2' 'mbedtls') makedepends=('git' 'cmake' 'gcc') provides=("$_pkgname") conflicts=("$_pkgname") source=("git+https://github.com/pragtical/plugin-manager") sha256sums=('SKIP') pkgver() { cd "${srcdir}/${_gitname}" git describe --tags --long | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g' } prepare() { cd "${_gitname}" git submodule update --init } build() { cd "${_gitname}" ./build.sh -DPPM_STATIC \ -DPPM_VERSION='"'$pkgver-$CARCH-linux'"' \ -L/usr/lib/mbedtls2 \ -I/usr/include/mbedtls2 \ -lgit2 -lzip -llua -lm -lmbedtls\ -lmbedx509 -lmbedcrypto -lz } package() { mkdir -p "$pkgdir/usr/bin" cp "${srcdir}/${_gitname}"/ppm "$pkgdir/usr/bin" }