summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9981885cefcac72a8f31113aec95b1f3bdd02005 (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
# Maintainer: Steven Honeyman <stevenhoneyman at gmail com>
# Maintainer: Maxim Fomin <maxim at fomin one>

pkgname=wxhexeditor
pkgver=0.24
pkgrel=3
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')
source=("https://github.com/EUA/wxHexEditor/archive/v$pkgver.tar.gz"
        "01-add-pkexec-support.patch")
md5sums=('1b77bddc026e22797fd0e7a82e52cd28'
         'e62ae9e6b0aac2afdcc41b51cab39272')
         
prepare() {
    cd "$srcdir/wxHexEditor-$pkgver"
    patch -Np1 -i "${srcdir}/01-add-pkexec-support.patch"
}

build() {
    cd "$srcdir/wxHexEditor-$pkgver"
    make WXCONFIG="/usr/bin/wx-config-gtk3"
}

package() {
    cd "$srcdir/wxHexEditor-$pkgver"
    make WXCONFIG="/usr/bin/wx-config-gtk3" DESTDIR="$pkgdir" PREFIX="/usr" install
}