summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46f06869311468e41e78bfd2eeaacc50f93ac84e (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
32
33
34
35
36
37
38
39
# Maintainer: Yarema aka Knedlyk <yupadmin (at) gmail (dot) com>

pkgname=ddrescue-gui
pkgver=2.1.1
pkgrel=1
pkgdesc="A simple GUI frontend to make ddrescue (a command-line data recovery tool) easier to use."
arch=('any')
url="https://launchpad.net/ddrescue-gui"
depends=('python2' 'python2-getdevinfo' 'python2-wxpython4' 'ddrescue' 'parted' 'lshw' 'python2-requests' 'python2-beautifulsoup4')
license=('GPL3')
source=(https://launchpad.net/ddrescue-gui/2.x/${pkgver}/+download/ddrescue-gui_${pkgver}%7Eotherdistro-0ubuntu1%7Eppa1.tar.gz)
provides=('ddrescue-gui')

prepare() {
    cd ${srcdir}/${pkgname}-${pkgver}
    sed -i 's/python3/python2/g'  "${srcdir}/${pkgname}-${pkgver}/ddrescue-gui.desktop"
}

package() {
    cd ${srcdir}/${pkgname}-${pkgver}
    mkdir -p ${pkgdir}/usr/share/${pkgname}
    mkdir -p ${pkgdir}/usr/share/applications
    mkdir -p ${pkgdir}/usr/share/pixmaps
    mkdir -p ${pkgdir}/usr/share/polkit-1/actions/

    cp -r "${srcdir}/${pkgname}-${pkgver}/images" "${pkgdir}/usr/share/${pkgname}"
    cp -r "${srcdir}/${pkgname}-${pkgver}/other" "${pkgdir}/usr/share/${pkgname}"
    cp -r "${srcdir}/${pkgname}-${pkgver}/Tools" "${pkgdir}/usr/share/${pkgname}"
    cp -r "${srcdir}/${pkgname}-${pkgver}/Tests" "${pkgdir}/usr/share/${pkgname}"
    cp -r "${srcdir}/${pkgname}-${pkgver}/docs" "${pkgdir}/usr/share/${pkgname}"

    install -D -m755 ${srcdir}/${pkgname}-${pkgver}/*.py "${pkgdir}/usr/share/${pkgname}"
    install -D -m644 "${srcdir}/${pkgname}-${pkgver}/ddrescue-gui.desktop" "${pkgdir}/usr/share/applications"
    install -D -m644 "${srcdir}/${pkgname}-${pkgver}/ddrescue-gui.png" "${pkgdir}/usr/share/pixmaps"
    install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/${pkgname}"
    install -D -m644 "${srcdir}/${pkgname}-${pkgver}/org.hamishmb.ddrescue-gui.policy" "${pkgdir}/usr/share/polkit-1/actions/"
}

md5sums=('e03c81f83b9ff11b88df02c63a803651')