updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / heraia / PKGBUILD
blob976607a5f460b6c95b713fd071a20de022400a4d
1 pkgname=heraia
2 pkgver=0.1.7
3 _ghexver=2.24.0
4 pkgrel=2
5 pkgdesc="Edit all sorts of files viewing them in an hexadecimal manner"
6 arch=('i686' 'x86_64')
7 url='http://gna.org/projects/heraia/'
8 license=('GPL')
9 depends=('gtk2' 'desktop-file-utils' 'hicolor-icon-theme')
10 makedepends=('pkgconfig' 'intltool' 'gnome-doc-utils' 'libgnomeui' 'libgnomeprintui')
11 options=('!libtool')
12 install=heraia.install
13 source=(http://download.gna.org/$pkgname/releases/$pkgname-$pkgver.tar.gz http://ftp.gnome.org/pub/GNOME/sources/ghex/2.24/ghex-${_ghexver}.tar.bz2)
14 sha256sums=('4b008b99c54571569f5c7f2cfa105818e63da64289df7406010c67c15ae59137' 'df0e1a01472a99b9e94236ab1200108e10829d99c030f8422288323448762e2e')
16 build() {
17         cd "${srcdir}/ghex-${_ghexver}"
18         
19         ./configure --prefix="${srcdir}/ghex-${_ghexver}/gtkhex" --sysconfdir="${srcdir}/ghex-${_ghexver}/etc" \
20       --localstatedir="${srcdir}/ghex-${_ghexver}/var" --disable-static \
21       --disable-schemas-compile
22       
23     make
24     
25     make install
26             
27     cd "${srcdir}/${pkgname}-${pkgver}"
28     
29     PKG_CONFIG_PATH="../ghex-${_ghexver}/" ./configure --prefix=/usr --disable-static
30     
31     sed -i 's/gtkhex\/gtkhex.h/gtkhex.h/g' libheraia/include/libheraia.h
32     
33     make
36 package() {
37     cd "${srcdir}/${pkgname}-${pkgver}"
38     make DESTDIR="${pkgdir}" install
39     cp "${srcdir}/ghex-${_ghexver}/gtkhex/lib/libgtkhex.so.0" "${pkgdir}/usr/lib/heraia/"