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

### dummy template: collect all libs from libtool
TARBALL=libtool-libs-$PKGVER-$PKGARCH-$PKGBUILD.txz # this is the output tarball
MD5SUM=
SRC_URL="libtool-$PKGVER-$PKGARCH-$PKGBUILD.txz libtool32-$PKGVER-i686-$PKGBUILD.txz"
BUNDLE=
SLACKREQ=
SLACKDESC="libtool-libs: libtool-libs $PKGVER (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

### nothing to download
unset -f pkg_download

pkg_prepare() {
	: 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
}
 
