summaryrefslogtreecommitdiffstats
path: root/extra/acidrip/Pkgfile
blob: b975aca14ae90faf9a1cea729dcb619eeb48bdd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Description: Permet de ripper les DVDs
# URL: http://untrepid.com/acidrip/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: mplayer, lame, libdvdcss, p5-gtk2, lsdvd, mplayer

name=acidrip
version=0.14
release=1
perlVer=5.12.0
source=(http://switch.dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz\
	http://nutyx.meticul.eu/files/patchs/$name/{acidrip.desktop,crop-fixes.patch}\
	http://untrepid.com/acidrip/acidrip-icon4bit.png)

build() {
	cd $name-$version
	patch -up1 < ../crop-fixes.patch 
	perl Makefile.PL \
      INSTALLSITELIB=/usr/lib/perl5/site_perl/$perlVer 

  sed -i "s%^DESTDIR.*%DESTDIR=$PKG%" Makefile
	make
	make DESTDIR=$PKG install
	install -D -m644 ../acidrip-icon4bit.png \
    $PKG/usr/share/pixmaps/acidrip.png
	install -D -m644 ../acidrip.desktop \
    $PKG/usr/share/applications/acidrip.desktop
	find $PKG -name perllocal.pod -delete
	find $PKG -name .packlist -delete
}