summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a92c48a28fd30b59c858a73ebde29291ac8c8100 (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: Jingbei Li <i@jingbei.li>
# Contributor: codestation <codestation404 at gmail dot com>

pkgname=wxmedit
pkgver=3.1_FIX1
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')
depends=('wxgtk' 'icu' 'desktop-file-utils')
makedepends=('boost')
source=("https://github.com/hltj/wxMEdit/archive/$pkgver.tar.gz")
sha256sums=('51dd81ddd44c83017d2e54f8b0a11a50e56075e8edc01d738865478fdddd8017')

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

  sed 's|boost/tr1/unordered_set.hpp|boost/unordered_set.hpp|g' -i `grep 'boost/tr1/unordered_set.hpp' . -rIl`
  sed 's|boost/tr1/unordered_map.hpp|boost/unordered_map.hpp|g' -i `grep 'boost/tr1/unordered_map.hpp' . -rIl`
  sed 's/std::tr1/boost/g' -i `grep 'std::tr1::' . -rIl`

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

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