From 746908e23742cc88b5a00f7c24c08d3fe2c3877b Mon Sep 17 00:00:00 2001 From: Tai Chi Minh Ralph Eastwood Date: Sat, 21 Jan 2023 16:05:59 +0100 Subject: [PATCH] New package: libldm-0.25 --- common/shlibs | 1 + srcpkgs/ldmtool | 1 + srcpkgs/libldm-devel | 1 + srcpkgs/libldm/template | 43 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 120000 srcpkgs/ldmtool create mode 120000 srcpkgs/libldm-devel create mode 100644 srcpkgs/libldm/template diff --git a/common/shlibs b/common/shlibs index 85c08f13a05f..688f871b87e7 100644 --- a/common/shlibs +++ b/common/shlibs @@ -443,6 +443,7 @@ libSDL_ttf-2.0.so.0 SDL_ttf-2.0.9_1 libKScreenLocker.so.5 kscreenlocker-5.8.4_1 libparted.so.2 libparted-3.1_1 libparted-fs-resize.so.0 libparted-3.1_1 +libldm-1.0.so.0 libldm-0.25_1 libntfs-3g.so.89 ntfs-3g-2021.8.22_1 libruby.so.3.1 ruby-3.1.0_1 librw.so.0 rankwidth-0.9_1 diff --git a/srcpkgs/ldmtool b/srcpkgs/ldmtool new file mode 120000 index 000000000000..78f1cc5d8430 --- /dev/null +++ b/srcpkgs/ldmtool @@ -0,0 +1 @@ +libldm \ No newline at end of file diff --git a/srcpkgs/libldm-devel b/srcpkgs/libldm-devel new file mode 120000 index 000000000000..78f1cc5d8430 --- /dev/null +++ b/srcpkgs/libldm-devel @@ -0,0 +1 @@ +libldm \ No newline at end of file diff --git a/srcpkgs/libldm/template b/srcpkgs/libldm/template new file mode 100644 index 000000000000..7227c2dfcedd --- /dev/null +++ b/srcpkgs/libldm/template @@ -0,0 +1,43 @@ +# Template file for 'libldm' +pkgname=libldm +version=0.2.5 +revision=1 +build_style=gnu-configure +hostmakedepends="autogen automake libtool pkg-config glib-devel gtk-doc" +makedepends="libuuid-devel libglib-devel json-glib-devel zlib-devel device-mapper-devel" +short_desc="Device mapper for Microsoft Windows Dynamic Disks" +maintainer="Tai Chi Minh Ralph Eastwood " +license="GPL-3.0-or-later" +homepage="https://github.com/mdbooth/libldm" +distfiles="https://github.com/mdbooth/libldm/archive/refs/tags/libldm-${version}.tar.gz" +make_check=no # needs root permissions to mount and run dmsetup +checksum=61bb2f2367b1df59f818cb96794d1770a0def956bd2c343dccf1425dae3021b5 + +pre_configure() { + NOCONFIGURE=1 ./autogen.sh +} + +ldmtool_package() { + short_desc+=" - tool" + pkg_install() { + vmove "usr/bin/ldmtool" + } +} + +libldm_package() { + short_desc+=" - shared library" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +libldm-devel_package() { + depends="libldm>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}