From ff27a4c3d36fc4d9b0befbe2eff86d68d1838315 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 23 Nov 2021 14:32:11 +0100 Subject: [PATCH] New package: libptytty-2.0 --- common/shlibs | 1 + srcpkgs/libptytty-devel | 1 + srcpkgs/libptytty/template | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 120000 srcpkgs/libptytty-devel create mode 100644 srcpkgs/libptytty/template diff --git a/common/shlibs b/common/shlibs index 6ccb302132..ab865cc085 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4069,3 +4069,4 @@ libbrial.so.3 brial-1.2.10_1 libbrial_groebner.so.3 brial-1.2.10_1 libm4ri-0.0.20200125.so m4ri-20200125_1 libm4rie-0.0.20200125.so m4rie-20200125_1 +libptytty.so.0 libptytty-2.0_1 diff --git a/srcpkgs/libptytty-devel b/srcpkgs/libptytty-devel new file mode 120000 index 0000000000..d34520bce1 --- /dev/null +++ b/srcpkgs/libptytty-devel @@ -0,0 +1 @@ +libptytty \ No newline at end of file diff --git a/srcpkgs/libptytty/template b/srcpkgs/libptytty/template new file mode 100644 index 0000000000..ebcc1aeba3 --- /dev/null +++ b/srcpkgs/libptytty/template @@ -0,0 +1,27 @@ +# Template file for 'libptytty' +pkgname=libptytty +version=2.0 +revision=1 +build_style=cmake +configure_args="-DTTY_GID_SUPPORT_EXITCODE=1 -DTTY_GID_SUPPORT_EXITCODE__TRYRUN_OUTPUT=" +short_desc="Library for pty/tty/utmp/wtmp/lastlog handling" +maintainer="Leah Neukirchen " +license="GPL-2.0-or-later" +homepage="http://software.schmorp.de/pkg/libptytty.html" +distfiles="http://dist.schmorp.de/libptytty/libptytty-${version}.tar.gz" +checksum=8033ed3aadf28759660d4f11f2d7b030acf2a6890cb0f7926fb0cfa6739d31f7 + +if [ "$XBPS_TARGET_LIBC" = musl ]; then + configure_args+=" -DPT_WTMPX_FILE=\"/dev/null/wtmp\"" +fi + +libptytty-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + vmove usr/share/man/man3 + } +}