updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pburn / PKGBUILD
bloba3ac7af001c7e32cb8836941dab18a612020764d
1 # Maintainer: kfgz <kfgz at interia pl>
2 # Contributor: hauzer <alokinpwn at gmail dot com>
4 pkgname=pburn
5 pkgver=3.4.3
6 pkgrel=1
7 pkgdesc="CD/DVD recording program used in Puppy Linux."
8 arch=('any')
9 url="http://murga-linux.com/puppy/viewtopic.php?t=23881"
10 license=('GPL')
11 depends=('cddetect' 'dvd+rw-tools' 'gtkdialog>=0.8.0' 'hotplug2stdout' 'usleep')
12 makedepends=('pet2tgz')
13 optdepends=('dvdauthor: for burning video-DVD'
14             'ffmpeg: for converting audio/video'
15             'normalize: for volume settings on Audio-CD'
16             'pfilesearch: for file search'
17             'vamps: for shrinking video-DVD'
18             'vcdimager: for burning Video-CD'
19             'vobcopy: for copying video-DVD')
20 _md5sum=008574318631151af97a0b1688c7c2a9
22 build() {
23   cd "${startdir}"
24   if [ -e ${pkgname}-${pkgver}.pet ]; then
25     if [ ${_md5sum} != `md5sum ${pkgname}-${pkgver}.pet | awk '{print $1}'` ]; then error "Md5sum is incorrect!" && exit; fi
26     ln -sf "${startdir}"/${pkgname}-${pkgver}.pet "${srcdir}"/${pkgname}-${pkgver}.pet
27     pet2tgz -i "${srcdir}"/${pkgname}-${pkgver}.pet -o "${srcdir}"/${pkgname}-${pkgver}.tar.gz
28     cd "${srcdir}"
29     tar -xzf "${srcdir}"/${pkgname}-${pkgver}.tar.gz
30   else
31     wget --user=puppy --password=linux http://www.meownplanet.net/zigbert/${pkgname}-${pkgver}.pet
32     if [ ${_md5sum} != `md5sum ${pkgname}-${pkgver}.pet | awk '{print $1}'` ]; then error "Md5sum is incorrect!" && exit; fi
33     ln -sf "${startdir}"/${pkgname}-${pkgver}.pet "${srcdir}"/${pkgname}-${pkgver}.pet
34     pet2tgz -i "${srcdir}"/${pkgname}-${pkgver}.pet -o "${srcdir}"/${pkgname}-${pkgver}.tar.gz
35     cd "${srcdir}"
36     tar -xzf "${srcdir}"/${pkgname}-${pkgver}.tar.gz
37   fi
40 package() {
41         
42 #  cat > ${pkgname} <<EOF
43 ##!/bin/bash
44 #if [[ ! -f $HOME/.pfilesearch/pfilesearchrc ]] ; then
45 #  if [[ ! -d $HOME/.pfilesearch ]] ; then
46 #    mkdir $HOME/.pfilesearch
47 #  fi
48 #  touch $HOME/.pfilesearch/pfilesearchrc
49 #fi
51 #"/usr/share/${pkgname}/${pkgname}" "\$@"
52 #EOF
54   cat > ${pkgname} <<EOF
55 #!/bin/bash
56 "/usr/share/${pkgname}/${pkgname}" "\$@"
57 EOF
59   cat > ${pkgname}.desktop <<EOF
60 [Desktop Entry]
61 Encoding=UTF-8
62 Name=Pburn CD/DVD/Blu-ray writer
63 Name[de]=Pburn CD/DVD/Blu-ray Brenner
64 Name[es]=Pburn-Grabador de CD/DVD/Blu-ray
65 Name[fr]=Graveur CD/DVD/Blu-ray
66 Name[hu_HU]=Pburn CD/DVD/Blu-ray író
67 Name[ja]=Pburn CD/DVD/Blu-ray書き込み
68 Icon=/usr/share/${pkgname}/pburn20.png
69 Comment=Pburn CD/DVD/Blu-ray writer
70 Exec=${pkgname}
71 Terminal=false
72 Type=Application
73 Categories=Multimedia;Utility;
74 GenericName=Pburn CD/DVD/Blu-ray writer
75 EOF
77   install -D -m755 ${pkgname} "${pkgdir}"/usr/bin/${pkgname}
78   install -D -m644 ${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
80   mkdir -p "${pkgdir}"/usr/share
81   cp -r "${srcdir}"/${pkgname}-${pkgver}/usr/local/${pkgname} "${pkgdir}"/usr/share/
82   cp -r "${srcdir}"/${pkgname}-${pkgver}/usr/share/doc "${pkgdir}"/usr/share