### this file is sourced not run
PKGVER=2.4.2
PKGBUILD=1
PKGARCH=x86_64

### dummy template: collect all libs from libtool
TARBALL=libtool-libs-2.4.2-x86_64-1.txz # this is the output tarball
MD5SUM=
SRC_URL="libtool-2.4.2-x86_64-1.txz libtool32-2.4.2-i686-1.txz"
BUNDLE=
SLACKREQ=
SLACKDESC='libtool-libs: libtool-libs 2.4.2 (Libs from libtool)  
libtool-libs:  
libtool-libs: This package contains the shared library from libtool package: 
libtool-libs: libltdl. This shared library is sometimes used by applications 
libtool-libs: that want to use a platform-agnostic way of using a dynamically 
libtool-libs: loaded shared library (dlopen).  
libtool-libs: 
libtool-libs: This contains both 64-bit and 32-bit libs
libtool-libs: 
libtool-libs: 
libtool-libs:
'

PKG_NOMAKEPKG=yes
PKG_NOBUILD=yes

pkg_prepare() {
	: do nothing
}

pkg_download() {
	: do nothing
}

pkg_package() {
	echo extracting $SRC_URL
	mkdir tmp/libs
	for p in $SRC_URL; do
		tar -xf $OUTPUT_DIR/$p -C tmp/libs
	done
	
	# clean up unnecessary stuff
	cd tmp/libs/usr
	rm -rf bin src include share ../install
	cd ..
	
	pkg_package_dir .
}

pkg_build() { 
	: do nothing
}
 
