From 835b9b5c179b0b9c99f121d8fab0a434ce82b6f1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 23 Mar 2009 06:02:18 +0100 Subject: [PATCH] Added libusb-compat-0.1.0 template. --HG-- extra : convert_revision : 61c8960935b512b3aaa88988e8f0d6ee8310584a --- templates/libusb-compat-devel | 1 + templates/libusb-compat/depends | 2 ++ templates/libusb-compat/devel.template | 18 ++++++++++++++++++ templates/libusb-compat/template | 17 +++++++++++++++++ 4 files changed, 38 insertions(+) create mode 120000 templates/libusb-compat-devel create mode 100644 templates/libusb-compat/depends create mode 100644 templates/libusb-compat/devel.template create mode 100644 templates/libusb-compat/template diff --git a/templates/libusb-compat-devel b/templates/libusb-compat-devel new file mode 120000 index 0000000000..56c9d484ae --- /dev/null +++ b/templates/libusb-compat-devel @@ -0,0 +1 @@ +libusb-compat \ No newline at end of file diff --git a/templates/libusb-compat/depends b/templates/libusb-compat/depends new file mode 100644 index 0000000000..c97abcfa45 --- /dev/null +++ b/templates/libusb-compat/depends @@ -0,0 +1,2 @@ +abi_depends=0.1.0 +api_depends=${abi_depends} diff --git a/templates/libusb-compat/devel.template b/templates/libusb-compat/devel.template new file mode 100644 index 0000000000..b561a7de3e --- /dev/null +++ b/templates/libusb-compat/devel.template @@ -0,0 +1,18 @@ +# Template file for 'libusb-compat-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 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/templates/libusb-compat/template b/templates/libusb-compat/template new file mode 100644 index 0000000000..4f26dc1fe0 --- /dev/null +++ b/templates/libusb-compat/template @@ -0,0 +1,17 @@ +# Template file for 'libusb-compat' +pkgname=libusb-compat +sourcepkg=$pkgname +version=0.1.0 +distfiles="${SOURCEFORGE_SITE}/libusb/$pkgname-$version.tar.bz2" +build_style=gnu_configure +short_desc="A libusb-0.1 compatibility library" +maintainer="Juan RP " +checksum=69ad5d62946885a60368381a3354b8fd19597bc6fc9ee25b4598977771429b8d +long_desc=" + $pkgname is a replacement for libusb-0.1. However, instead of being an actual + implementation, libusb-0.1 is more of a compatibility layer (or wrapper) which + just converts libusb-0.1 calls into their libusb-1.0 equivalents." + +subpackages="devel" +Add_dependency full glibc +Add_dependency full libusb