updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / dvdshrink / PKGBUILD
blobb6cf2998ece702c8853a618f60a048cf8f1a3df7
1 # Contributor: vn158 <vn158 at seznam dot cz>
2 pkgname=dvdshrink
3 pkgver=3.2.0.15
4 pkgrel=1
5 pkgdesc="Backup DVD disks"
6 arch=(i686 x86_64)
7 url="http://www.dvdshrink.org/"
8 license=('custom:freeware')
9 depends=()
10 [ "$CARCH" = i686   ] && depends=(wine)
11 [ "$CARCH" = x86_64 ] && depends=(bin32-wine)
12 makedepends=(innounp icoutils)
13 source=($pkgname $pkgname.desktop http://www.dwn.cz/sw/dvdshrink32setup.zip)
14 md5sums=('6ee583f46539bb5042bebaae0bc17330'
15          '8f0e6d4c817b1374e1e1dabbe82dd1f1'
16          'e6b0a6346fe640365f4ab9d5c7d9fb93')
17 noextract=()
18 options=(!strip)
20 build() {
21   cd "$startdir"/src
22   innounp -x -q dvdshrink32setup.exe
24   cd "$startdir"
26   wrestool -x -t14 src/\{app\}/DVD\ Shrink\ 3.2.exe > dvdshrink.ico 2> /dev/null
27   icotool -x dvdshrink.ico
28   mv -f dvdshrink*32x32x8.png dvdshrink.png
30   install -d -m755 pkg/usr/share/$pkgname
31   install -d -m755 pkg/usr/share/$pkgname/Still\ Images
32   install -d -m755 pkg/usr/share/$pkgname/Web
33   install -d -m755 pkg/usr/share/$pkgname/Web/Images
35   cp -a src/\{app\}/*.exe pkg/usr/share/$pkgname
36   cp -a src/\{app\}/Still\ Images/* pkg/usr/share/$pkgname/Still\ Images
37   cp -a src/\{app\}/Still\ Images/* pkg/usr/share/$pkgname/Web/Images
38   
39   tr -d \\r < src/\{app\}/License.txt > pkg/usr/share/$pkgname/License.txt
40   tr -d \\r < src/\{app\}/Version\ History.txt > pkg/usr/share/$pkgname/Version\ History.txt
42   tr -d \\r < src/\{app\}/Web/Acknowledgements.htm > pkg/usr/share/$pkgname/Web/Acknowledgements.htm
43   tr -d \\r < src/\{app\}/Web/Contents.htm > pkg/usr/share/$pkgname/Web/Contents.htm
44   tr -d \\r < src/\{app\}/Web/DVD\ Shrink Help.htm > pkg/usr/share/$pkgname/Web/DVD\ Shrink Help.htm
45   tr -d \\r < src/\{app\}/Web/DVD\ Shrink.htm > pkg/usr/share/$pkgname/Web/DVD\ Shrink.htm
46   tr -d \\r < src/\{app\}/Web/Guides.htm > pkg/usr/share/$pkgname/Web/Guides.htm
47   tr -d \\r < src/\{app\}/Web/Introduction.htm > pkg/usr/share/$pkgname/Web/Introduction.htm
48   tr -d \\r < src/\{app\}/Web/License.htm > pkg/usr/share/$pkgname/Web/License.htm
49   tr -d \\r < src/\{app\}/Web/Quality.htm > pkg/usr/share/$pkgname/Web/Quality.htm
50   tr -d \\r < src/\{app\}/Web/Version\ History.htm > pkg/usr/share/$pkgname/Web/Version\ History.htm
52   find pkg/usr/share/$pkgname -type d -exec chmod 755 "{}" \;
53   find pkg/usr/share/$pkgname -type f -exec chmod 644 "{}" \;
55   install -d -m755 pkg/usr/bin
56   install -m755 $pkgname pkg/usr/bin
57   
58   # Install desktop file
59   install -D -m644 $pkgname.png $startdir/pkg/usr/share/pixmaps/$pkgname.png
60   install -D -m644 $pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop