Added libmtp-1.0.2 build template.

This commit is contained in:
Juan RP 2010-05-09 18:57:08 +02:00
parent 926e92ddbc
commit 97adf4e62a
5 changed files with 45 additions and 0 deletions

1
srcpkgs/libmtp-devel Symbolic link
View file

@ -0,0 +1 @@
libmtp

2
srcpkgs/libmtp/depends Normal file
View file

@ -0,0 +1,2 @@
abi_depends=">=1.0.2"
api_depends="${abi_depends}"

View file

@ -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
}

24
srcpkgs/libmtp/template Normal file
View file

@ -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 <xtraeme@gmail.com>"
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
}

View file

@ -642,3 +642,4 @@ libmpi.so openmpi openmpi-devel
libopenmpi_malloc.so openmpi openmpi-devel libopenmpi_malloc.so openmpi openmpi-devel
libopen-pal.so openmpi openmpi-devel libopen-pal.so openmpi openmpi-devel
libopen-rte.so openmpi openmpi-devel libopen-rte.so openmpi openmpi-devel
libmtp.so libmtp libmtp-devel