vp-build/srcpkgs/musl-rpmatch/template

35 lines
920 B
Bash

# Template file for 'musl-rpmatch'
pkgname=musl-rpmatch
version=1.0
revision=2
build_style=gnu-configure
configure_args="--enable-shared --enable-static"
hostmakedepends="automake libtool gettext-devel"
makedepends="gettext-devel"
short_desc="Implementation of rpmatch(3) for musl libc"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="3-clause-BSD"
homepage="https://github.com/pullmoll/musl-rpmatch"
distfiles="https://github.com/pullmoll/musl-rpmatch/archive/v${version}.tar.gz"
checksum=dcbd41909bd69eaeedd20f03435b165406b514465249186ff1ca68d04fd35953
pre_configure() {
./bootstrap.sh
}
post_install() {
vinstall musl-rpmatch.pc 644 usr/lib/pkgconfig
vlicense COPYING
}
musl-rpmatch-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/*.a
vmove usr/lib/pkgconfig
}
}