desktop/acetoneiso2/PKGBUILD
2018-11-29 12:35:55 +01:00

47 lines
1.5 KiB
Bash

pkgname=acetoneiso2
pkgver=2.3
pkgrel=3
pkgdesc="An all in one ISO tool (bin mdf nrg img daa dmg cdi b5i bwi pdi iso)"
arch=('x86_64')
url="http://chakra.sourceforge.net"
license=('GPL3')
depends=('qt5-webkit' 'fuseiso' 'cdrdao' 'cdrkit' 'gnupg2' 'pinentry' 'mplayer' 'phonon-qt5')
optdepends=("p7zip: for ISO compress/decompress support"
"dvd+rw-tools: for dvd ISO creation")
conflicts=('acetoneiso')
categories=('utils')
install=${pkgname}.install
source=(http://downloads.sourceforge.net/acetoneiso/AcetoneISO/AcetoneISO%202.3/acetoneiso_${pkgver}.tar.gz)
md5sums=('225f7af687016690ff28b9771a1ce179')
prepare() {
cd acetoneiso_${pkgver}/acetoneiso
sed -i 's#<Phonon/#<phonon/#' sources/*
# Port to Qt5 https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1563802.html
sed -i 's/QtGui/QtWidgets/' sources/*
sed -i 's/getInteger/getInt/' sources/*
sed -i 's/WFlags/WindowFlags/' sources/*
sed -i 's/webkit/webkitwidgets/' acetoneiso.pro
sed -i 's/TARGET = /TARGET = acetoneiso/' acetoneiso.pro
sed -i 's/QT += phonon/LIBS += -lphonon4qt5/' acetoneiso.pro
sed -i 's@INCLUDEPATH.*$@& /usr/include/phonon4qt5@' acetoneiso.pro
# Remove malware from loading in the Updates tab, due to an expired domain being captured.
sed -i 's#http://www.acetoneteam.org/clients.html##' ui/acetoneiso.ui
}
build() {
cd acetoneiso_${pkgver}/acetoneiso
qmake-qt5
make
}
package() {
cd acetoneiso_${pkgver}/acetoneiso
make INSTALL_ROOT="${pkgdir}" install
}