PKGBUILDs/community/taglib-rcc/PKGBUILD
2009-10-09 21:15:33 -05:00

38 lines
1.2 KiB
Bash

# $Id: PKGBUILD 3137 2009-09-28 09:20:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=taglib-rcc
pkgver=1.6
pkgrel=1
pkgdesc="taglib with librcc patch"
arch=('i686' 'x86_64')
url="http://ktown.kde.org/~wheeler/taglib.html"
depends=('gcc-libs' 'zlib' 'bash' libxml2 db librcc)
makedepends=(patch)
license=('GPL')
provides=("taglib=$pkgver")
conflicts=("taglib")
options=('!libtool')
source=(http://ktown.kde.org/~wheeler/files/src/taglib-$pkgver.tar.gz \
http://downloads.sourceforge.net/rusxmms/taglib-csa6.tar.bz2)
md5sums=('5ecad0816e586a954bd676a86237d054'
'0868d633843ecd87526c77d788b3d3b6')
build() {
cd $startdir/src/taglib-$pkgver
[ $NOEXTRACT -eq 1 ] || patch -Np1 <$srcdir/taglib/taglib-1.5-ds-rusxmms.patch || return 1
[ $NOEXTRACT -eq 1 ] || sed -i 's|#include <string>|#include <string.h>|' $srcdir/taglib-$pkgver/taglib/toolkit/rccpatch.cpp
cd ..
mkdir build
cd build
[ $NOEXTRACT -eq 1 ] || cmake ../taglib-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_MP4=ON \
-DWITH_ASF=ON
make VERBOSE=1 || return 1
make DESTDIR=${pkgdir} install || return 1
}