1 # Maintainer: kfgz <kfgz at interia pl>
2 # Contributor: hauzer <alokinpwn at gmail dot com>
7 pkgdesc="CD/DVD recording program used in Puppy Linux."
9 url="http://murga-linux.com/puppy/viewtopic.php?t=23881"
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
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
29 tar -xzf "${srcdir}"/${pkgname}-${pkgver}.tar.gz
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
36 tar -xzf "${srcdir}"/${pkgname}-${pkgver}.tar.gz
42 # cat > ${pkgname} <<EOF
44 #if [[ ! -f $HOME/.pfilesearch/pfilesearchrc ]] ; then
45 # if [[ ! -d $HOME/.pfilesearch ]] ; then
46 # mkdir $HOME/.pfilesearch
48 # touch $HOME/.pfilesearch/pfilesearchrc
51 #"/usr/share/${pkgname}/${pkgname}" "\$@"
54 cat > ${pkgname} <<EOF
56 "/usr/share/${pkgname}/${pkgname}" "\$@"
59 cat > ${pkgname}.desktop <<EOF
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
73 Categories=Multimedia;Utility;
74 GenericName=Pburn CD/DVD/Blu-ray writer
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