From 97adf4e62afe3ce73d1eae7bc8d134cb9f7b6f29 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 9 May 2010 18:57:08 +0200 Subject: [PATCH] Added libmtp-1.0.2 build template. --- srcpkgs/libmtp-devel | 1 + srcpkgs/libmtp/depends | 2 ++ srcpkgs/libmtp/libmtp-devel.template | 17 +++++++++++++++++ srcpkgs/libmtp/template | 24 ++++++++++++++++++++++++ xbps-src/common/mapping_shlib_binpkg.txt | 1 + 5 files changed, 45 insertions(+) create mode 120000 srcpkgs/libmtp-devel create mode 100644 srcpkgs/libmtp/depends create mode 100644 srcpkgs/libmtp/libmtp-devel.template create mode 100644 srcpkgs/libmtp/template diff --git a/srcpkgs/libmtp-devel b/srcpkgs/libmtp-devel new file mode 120000 index 00000000000..e966e1f9db2 --- /dev/null +++ b/srcpkgs/libmtp-devel @@ -0,0 +1 @@ +libmtp \ No newline at end of file diff --git a/srcpkgs/libmtp/depends b/srcpkgs/libmtp/depends new file mode 100644 index 00000000000..b51be5b0349 --- /dev/null +++ b/srcpkgs/libmtp/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.0.2" +api_depends="${abi_depends}" diff --git a/srcpkgs/libmtp/libmtp-devel.template b/srcpkgs/libmtp/libmtp-devel.template new file mode 100644 index 00000000000..11b0f6c612a --- /dev/null +++ b/srcpkgs/libmtp/libmtp-devel.template @@ -0,0 +1,17 @@ +# Template file for 'libmtp-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libusb-compat-devel +Add_dependency run libmtp + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/{include,share} ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/libmtp/template b/srcpkgs/libmtp/template new file mode 100644 index 00000000000..7c92f59275a --- /dev/null +++ b/srcpkgs/libmtp/template @@ -0,0 +1,24 @@ +# Template file for 'libmtp' +pkgname=libmtp +version=1.0.2 +distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="Library for Microsoft's Media Transfer Protocol (MTP)" +maintainer="Juan RP " +checksum=23adc4d18b5d9e0932a542104b871163cdadc09e697184199ecaaa33eaffa7af +long_desc=" + libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP) + in the form of a library suitable primarily for POSIX compliant operating + systems." + +subpackages="$pkgname-devel" +Add_dependency run glibc +Add_dependency run libusb-compat +Add_dependency build doxygen +Add_dependency build libusb-compat-devel + +post_install() +{ + install -D -m644 ${wrksrc}/libmtp.rules \ + ${DESTDIR}/lib/udev/rules.d/52-libmtp.rules +} diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index c7711bb8000..7fa093f1ae3 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -642,3 +642,4 @@ libmpi.so openmpi openmpi-devel libopenmpi_malloc.so openmpi openmpi-devel libopen-pal.so openmpi openmpi-devel libopen-rte.so openmpi openmpi-devel +libmtp.so libmtp libmtp-devel