4 pkgdesc="A collection of Perl-Scripts which allow you to use your iPod under GNU/Linux"
5 url="http://www.gnu.org/software/gnupod/"
8 depends=('perl-timedate' 'perl-digest-sha1' 'perl-mp3-info' 'perl-unicode-string' 'perlxml')
9 source=("http://blinkenlights.ch/$pkgname-dist/stable/$pkgname-$pkgver.tgz")
10 md5sums=('978c9f813e6930b780e81eb30a742ebe')
11 optdepends=('perl-audio-flac-decoder: for transcoding FLAC files on-the-fly onto the iPod')
14 cd ${srcdir}/$pkgname-$pkgver
17 install -d ${pkgdir}/usr/bin
18 install -d ${pkgdir}/usr/share/man/man1
19 install -d ${pkgdir}/usr/lib/perl5/vendor_perl/GNUpod
21 # Ignore brain-dead install script, and do the Arch thing
22 install -m755 src/*.pl ${pkgdir}/usr/bin
23 install -m644 man/* ${pkgdir}/usr/share/man/man1
24 install -m444 src/ext/* ${pkgdir}/usr/lib/perl5/vendor_perl/GNUpod
26 # Tidy up after ignoring brain-dead install script :P
27 for i in ${pkgdir}/usr/bin/*; do
28 sed -i "s:##__PERLBIN__###:\!/usr/bin/perl:;s:###__VERSION__###:$pkgver:" $i ;