void-packages/srcpkgs/gnulib/template

44 lines
1009 B
Bash

# Template file for 'gnulib'
pkgname=gnulib
version=20220829~828413b
revision=1
create_wrksrc=yes
build_style=gnu-configure
hostmakedepends="automake"
short_desc="Gnulib - The GNU Portability Library"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="LGPL-2.1-or-later, GPL-2.0-or-later, FSFULLR"
homepage="https://www.gnu.org/software/gnulib/"
distfiles="${DEBIAN_SITE}/main/g/gnulib/gnulib_${version}.orig.tar.gz"
checksum=8bf9ac42ebc7d6ec1afc9d50bfe823a212b06f0d40e738b0e9e468be60a858fe
post_extract() {
mv gnulib-* gnulib
chmod -R +w gnulib
chmod -R a+r gnulib
}
do_configure() {
rm -rf build
./gnulib/gnulib-tool --create-testdir --with-tests -S \
--dir=build git-merge-changelog
cd build
./configure ${configure_args}
}
do_build() {
make -C build ${makejobs}
}
do_install() {
vmkdir usr/share
vcopy gnulib /usr/share
}
git-merge-changelog_package() {
short_desc="GNU-style ChangeLog merge driver"
pkg_install() {
make -C build DESTDIR=${PKGDESTDIR} install
}
}