1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
2 pkgname=wxhexeditor-svn-updated
5 pkgdesc="a free hex editor / disk editor for Linux, Windows and MacOSX"
7 url="http://wxhexeditor.sourceforge.net/"
9 depends=('udis86' 'mhash' 'wxgtk')
10 makedepends=('subversion')
11 provides=('wxhexeditor')
12 conflicts=('wxhexeditor')
16 _svntrunk=https://wxhexeditor.svn.sourceforge.net/svnroot/wxhexeditor/trunk
21 msg "Connecting to SVN server...."
23 if [[ -d "${_svnmod}/.svn" ]]; then
24 (cd "${_svnmod}" && svn up -r "${pkgver}")
26 svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
29 msg "SVN checkout done or server timeout"
30 msg "Starting build..."
32 rm -rf "${srcdir}/${_svnmod}-build"
33 cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
34 cd "${srcdir}/${_svnmod}-build"
36 #Use shared udis86 because I can't get the included udis86 to compile
37 sed -i -e '/cd udis86/d' -e '/if libudis86/d' -e 's/-Iudis86/-I\/usr\/include\/libudis86/' -e '/LDFLAGS/s/^\(LDFLAGS.*libs`\)$/\1 -ludis86/' -e '/LIBS/s/udis86.*libudis86.a//' -e '/udis86.*libudis86.a:/d' makefile
39 #Use shared mhash because I can't get the included mhash to compile
40 sed -i -e '/CXXFLAGS/s/mhash\/include/\/usr\/include\/mutils/' -e '/LIBS/s/mhash.*libmhash.a//' -e '/cd mhash/d' -e '/if libmhash/d' -e '/LDFLAGS/s/^\(LDFLAGS.*libs`\)/\1 -lmhash/' -e '/mhash.*libmhash.a:/d' makefile
46 cd "${srcdir}/${_svnmod}-build"
47 make DESTDIR="${pkgdir}/" install
50 # vim:set ts=2 sw=2 et: