1 # Contributor: scj <scj archlinux us>
2 # Maintainer: Eivind Eide <xenofil A-T gmail D-O-T com>
6 pkgdesc="CLI tool for manipulating APEv2 tags"
8 url="http://muth.org/Robert/Apetag"
10 depends=('python2' 'gcc-libs')
11 optdepends=('id3v2: mp3 support for tagdir.py'
12 'mutagen: mp3 support for tagdir.py'
13 'flac: flac support for tagdir.py')
14 source="${url}/${pkgname}.${pkgver}.tar.gz"
15 md5sums=('f47a2fc02ea88018afd05e8a16f11235')
19 sed -e '/C++ imports/a #include <cstdlib>' -i switch.C
20 sed -e '/#include <cstdlib>/a #include <cstring>' -i switch.H
21 sed -e '1s/python$/python2/' -i cddb.py -i rmid3tag.py -i tagdir.py
27 install -Dm755 apetag "${pkgdir}/usr/bin/apetag"
28 install -Dm755 cddb.py "${pkgdir}/usr/bin/cddb.py"
29 install -Dm755 rmid3tag.py "${pkgdir}/usr/bin/rmid3tag.py"
30 install -Dm755 tagdir.py "${pkgdir}/usr/bin/tagdir.py"
31 install -Dm644 00copying \
32 "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
33 install -Dm644 00readme \
34 "${pkgdir}/usr/share/doc/${pkgname}/README"