updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / taglib-extras-svn / PKGBUILD
blob61e7bf8fd95df11ee355a753bb233a64e6822e18
1 # $Id$
2 # Maintainer:
4 pkgname=taglib-extras-svn
5 pkgver=1021695
6 pkgrel=1
7 pkgdesc="Library for reading and editing the meta-data of several popular audio formats."
8 arch=('i686' 'x86_64')
9 url="http://www.jefferai.com/taglibs-extras"
10 license=('GPL2')
11 depends=('zlib' 'gcc-libs' 'taglib')
12 makedepends=('cmake>=2.6.2' 'pkgconfig' 'automoc4' 'subversion')
13 conflicts=('taglibs-extras')
14 source=()
15 md5sums=()
17 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib-extras
18 _svnmod=taglib-extras-svn
20 build() {
21         # start building
22         cd ${srcdir}
23         if [ -d ${_svnmod}/.svn ]; then
24                 (cd ${_svnmod} && svn up)
25         else
26                 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
27         fi
29         msg "SVN checkout done or server timeout"
30         msg "Starting the build ..."
32   cp -R ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
33         cd ${srcdir}/${_svnmod}-build
35         cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
36         make VERBOSE=1
38 package() {
39   cd ${srcdir}/${_svnmod}-build
40         make DESTDIR=${pkgdir} install
42         # remove the build directory
43   cd ${startdir}
44         rm -rf ${srcdir}/${_svnmod}-build
46 # vim:set ts=2 sw=2 et: