summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b69dae526332bd60469e04752125e23df6148b9 (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
# Maintainer: Yunhui Fu <yhfudev at gmail dot com>

pkgname=wxmedit-git
pkgver=dee626e
pkgrel=1
pkgdesc="Cross-platform Text/Hex Editor, a fork of MadEdit with bug fixes and improvements"
arch=("i686" "x86_64")
url="https://wxmedit.github.io/"
license=('GPL')
conflicts=('wxmedit')
#depends=('wxgtk' 'libucd-git' 'icu' 'desktop-file-utils' 'boost')
depends=('wxgtk' 'libucd-git' 'desktop-file-utils' 'boost')
makedepends=('git' 'libucd-git' 'boost' 'wxgtk')
source=(
    "$pkgname::git+https://github.com/hltj/wxMEdit"
    wxmedit-encdet-mozilla.patch
    )
install=wxmedit.install
md5sums=(
    'SKIP'
    '46277ca991dc2d7bf227bb6628561f4e'
    )

pkgver() {
  cd "$srcdir/$pkgname"
  local ver="$(git show | grep commit | awk '{print $2}'  )"
  #printf "r%s" "${ver//[[:alpha:]]}"
  echo ${ver:0:7}
}

prepare() {
  cd "$srcdir/$pkgname"
  #cd "$srcdir/wxMEdit-$pkgver"
  patch -p1 < "$srcdir/wxmedit-encdet-mozilla.patch"
}

build() {
  cd "$srcdir/$pkgname"
  #cd "$srcdir/wxMEdit-$pkgver"

  ./autogen.sh
  ./configure --prefix=/usr --with-wx-config=/usr/bin/wx-config-2.8
  make
}

package() {
  cd "$srcdir/$pkgname"
  #cd "$srcdir/wxMEdit-$pkgver"
  make DESTDIR="${pkgdir}" install
}