#Packager: Tim Beech ##draws heavily on the SlackBuild by Halim Issa ##and in turn on the original by AlienBob modified by Robby Workman pkgname=id3lib pkgver=3.8.3 pkgrel=1tjb #arch=noarch source=('http://downloads.sourceforge.net/id3lib/id3lib-3.8.3.tar.gz' 'id3lib_3.8.3_UTF16_writing_bug.patch' 'id3lib-3.8.3-GCC43FIX-1.patch' 'id3lib_Doxyfile.patch') sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver/ docs=("thanks" "history" "readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://id3lib.sourceforge.net #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "id3lib (a library fo manipulating ID3v1 and ID3v2 tags)" "id3lib automatically handles most of the low-level details involved" "with manipulating ID3v1 and ID3v2 tags in digital audio files. It" "provides support for several tasks associated with manipulating such" "tags, such as conversion between tagging formats, identifying valid" "tags, converting sizes, synchronisation, compression, and padding." ) build() { patch -p0 < id3lib_3.8.3_UTF16_writing_bug.patch patch -p0 < id3lib-3.8.3-GCC43FIX-1.patch patch -p1 -d $startdir/src/$pkgname-$pkgver/doc < id3lib_Doxyfile.patch cd $startdir/src/$pkgname-$pkgver # iomanip.h is obsolete; use the standard c++ header sed -i "s%iomanip.h%iomanip%g" configure ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --enable-static=no --enable-debug=no --build=$arch-slackware-linux make -j $numjobs || return 1 make docs 2>/dev/null || true make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cd $startdir/src/$pkgname-$pkgver/doc cp -a *txt *html *php *ico *png *gif *css *jpg Doxyfile $startdir/pkg/usr/doc/$pkgname-$pkgver cp -ar ../examples $startdir/pkg/usr/doc/$pkgname-$pkgver }