blob: 62f8f51a9316d919cabcac59b737783f2a99119c (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Steven Honeyman <stevenhoneyman at gmail com>
# Contributor: Maxim Fomin <maxim at fomin one>
# Add yourself to the disk group to edit disks
set -u
pkgname='wxhexeditor'
pkgver=0.24
pkgrel=4
pkgdesc='A free hex editor / disk editor for Linux, Windows and MacOSX'
arch=('i686' 'x86_64')
url='http://www.wxhexeditor.org'
license=('GPL2')
depends=('wxgtk3')
makedepends=('python')
optdepends=('gksu: For root access support'
'polkit: For root access support')
_srcdir="wxHexEditor-${pkgver}"
source=("${_srcdir}.tgz::https://github.com/EUA/wxHexEditor/archive/v${pkgver}.tar.gz"
"01-add-pkexec-support.patch"
"02-remove-strange-output.patch")
md5sums=('1b77bddc026e22797fd0e7a82e52cd28'
'e62ae9e6b0aac2afdcc41b51cab39272'
'9f8f2ea86c7cc1d4706ac8c4862cfb51')
sha256sums=('6ad993ba13a0076b31fb95daa7a812eae3b613d86f5e6709021e4d3398afcf00'
'fbb88c153e0bcba91a18bd6c646e262793a0b91c9e0ff6c40c4341247a47f620'
'ac9878adb6a25eca07b6ee8fcad07d4d655af23f6dcc49c418628184ab210f17')
prepare() {
set -u
cd "${_srcdir}"
patch -Np1 -i "${srcdir}/01-add-pkexec-support.patch"
patch -Np1 -i "${srcdir}/02-remove-strange-output.patch"
sed -e '/WX_CLEAR_ARRAY/ s:)$:);:g' -i $(grep --include='*.cpp' -lre 'WX_CLEAR_ARRAY' .)
set +u
}
build() {
set -u
cd "${_srcdir}"
test -x '/usr/bin/wx-config' || echo "${}"
make -s WXCONFIG='/usr/bin/wx-config'
set +u
}
package() {
set -u
cd "${_srcdir}"
make -j1 -s install DESTDIR="${pkgdir}" PREFIX='/usr'
set +u
}
set +u
|