PKGBUILDs/community/subdownloader/PKGBUILD

32 lines
1.1 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: Thomas Jost <thomas.jost@gmail.com>
pkgname=subdownloader
pkgver=2.0.9.3
pkgrel=1
pkgdesc="Automatic download/upload of subtitles using fast hashing"
arch=('i686' 'x86_64')
url="http://www.subdownloader.net/"
license=('GPL2')
depends=('imdbpy' 'mmpython' 'pyqt')
source=(http://launchpad.net/$pkgname/trunk/2.0.9/+download/$pkgname-$pkgver.tar.gz)
md5sums=('eff9ef5b0f027ff913798cdc41f5ce47')
build() {
cd "$srcdir/$pkgname"
install -d "$pkgdir/usr/share/$pkgname" "$pkgdir/usr/bin" "$pkgdir/usr/share/man/man1/"
gzip subdownloader.1
install -D subdownloader.1.gz "$pkgdir/usr/share/man/man1/"
install -D -m644 subdownloader.desktop "$pkgdir/usr/share/applications/subdownloader.desktop"
rm subdownloader.1.gz subdownloader.desktop
cp -a * "$pkgdir/usr/share/$pkgname/"
chmod 755 "$pkgdir/usr/share/$pkgname/run.py"
ln -s "/usr/share/$pkgname/run.py" "$pkgdir/usr/bin/subdownloader"
install -D -m644 gui/images/subdownloader.png "$pkgdir/usr/share/pixmaps/subdownloader.png"
}