summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5db0499a646f2622f48141d9c0e1161a397f5946 (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
# Maintainer: tioguda <guda.flavio@gmail.com>

_pkgname=ddutility
pkgname=ddutility-bin-pt-br
pkgver=1.5
pkgrel=1
pkgdesc="Gravar e fazer backup dos arquivos IMG e ISO do sistema operacional no cartão de memória ou no disco"
arch=('any')
license=('custom')
url="https://www.thefanclub.co.za/how-to/dd-utility-write-and-backup-operating-system-img-and-iso-files-memory-card-or-disk"
depends=('lsof' 'udevil' 'gksu' 'xz' 'coreutils' 'bash' 'gzip' 'zip' 'zenity')
conflicts=('ddutility-bin')
provides=('ddutility')
source=("https://raw.githubusercontent.com/thefanclub/dd-utility/master/DEB/${_pkgname}_${pkgver}_all.deb"
        'translation_pt-br.patch')
sha256sums=('49417d46f41550ef1346670269f7d08be499ef4127fca99d762dfb90942ce445'
            '8063e165853a79c342e472e973a25c70a2de82071277f221bc82c0b4f73b06fa')

prepare() {
	tar -xJf data.tar.xz
	patch -p1 -i ./translation_pt-br.patch
}

package_ddutility-bin-pt-br() {
	cd "$srcdir"
	# dump usr files to /usr
	mv usr "$pkgdir"
	# dump opt files to /opt
	mv opt "$pkgdir"
}