From 3995595e9d0ddb71bea8e952fddd141eeb984002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 18 Dec 2022 17:01:14 +0700 Subject: [PATCH] New package: gnulib-20220829~828413b --- srcpkgs/git-merge-changelog | 1 + srcpkgs/gnulib/template | 43 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 120000 srcpkgs/git-merge-changelog create mode 100644 srcpkgs/gnulib/template diff --git a/srcpkgs/git-merge-changelog b/srcpkgs/git-merge-changelog new file mode 120000 index 00000000000..acfd814db2f --- /dev/null +++ b/srcpkgs/git-merge-changelog @@ -0,0 +1 @@ +gnulib \ No newline at end of file diff --git a/srcpkgs/gnulib/template b/srcpkgs/gnulib/template new file mode 100644 index 00000000000..da256f2adf0 --- /dev/null +++ b/srcpkgs/gnulib/template @@ -0,0 +1,43 @@ +# 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 " +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 + } +}