44 lines
1008 B
Bash
44 lines
1008 B
Bash
# Template file for 'gnulib'
|
|
pkgname=gnulib
|
|
version=20230209+stable
|
|
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=3d705dfeae9d4f17c3532e8663523206352b1f79c990b945bdcda2a847ba3546
|
|
|
|
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
|
|
}
|
|
}
|