-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
43 lines (38 loc) · 1008 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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
}
}