### this file is sourced not run
PKGVER=0.8.9.0
PKGBUILD=1
PKGARCH=i686

# source: james
# release tarball
#PKGVER=
#TARBALL=
#MD5SUM=
#SRC_URL=
#BUNDLE=

# git-master tarball
PKGVER=0.8.9.0.2023.04 # 0.8.9.0 is the latest release from sourceforge
MD5SUM=761d8582916c55130aba40dbfc1093e1
hash=d1b97ed0020bc620a059d3675d1854b40bd2608d
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=libmodplug-$PKGVER-$hash7.tar.gz
SRC_URL=https://github.com/Konstanty/libmodplug/archive/$hash.tar.gz

SLACKREQ=
SLACKDESC="libmodplug32: libmodplug32 $PKGVER (MODule player library)"'
libmodplug32:  
libmodplug32: This is a library to play various MODules, e.g. MODs, XMs, ITs, 
libmodplug32: and others. It is not as accurate as XMP library but it is more 
libmodplug32: popular due to its maturity; and its rendering quality is good 
libmodplug32: enough for many songs. Given the right patch files, it can also
libmodplug32: render MIDI files to WAV.
libmodplug32: 
libmodplug32: This contains 32-bit version of the library
libmodplug32: 
libmodplug32:
'

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/libmodplug* &&
	autoreconf -fi &&
	CONFFLAGS="$CONFFLAGS --disable-static" &&
	pkg_build_autoconf &&	
	pkg_build_slackdesc
}


