updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vche / PKGBUILD
blob708c3dd61f74a0e5a7a7a4803450c43d86183137
1 #Maintainer: kfgz <kfgz at interia pl>
3 pkgname=vche
4 pkgver=1.7.2
5 pkgrel=2
6 pkgdesc="A hex editor which lets you view/edit hard drives, CDROMs, RAM, and everything that can be read."
7 arch=('i686' 'x86_64')
8 url="http://www.grigna.com/diego/linux/vche/"
9 license=('GPL')
10 depends=('ncurses')
11 makedepends=('gcc')
12 source=(http://www.grigna.com/diego/linux/${pkgname}/${pkgname}-${pkgver}.tar.gz)
13 md5sums=('d2a21986a4d4a23820ff4862e96d061d')
15 build() {
16   cd ${srcdir}/${pkgname}-${pkgver}/src
17   make
20 package() {
21   install -dm755 ${pkgdir}/usr/{bin,share/man/{man1,man5}}
22   install -dm755 ${pkgdir}/etc
23   cd ${srcdir}/${pkgname}-${pkgver}/src
24   
25   # binaries
26   install -m755 vche* ${pkgdir}/usr/bin
27   
28   # manpages
29   cd ${srcdir}/${pkgname}-${pkgver}/doc
30   sed "s/@version@/$pkgver/g;s/@releasedate@/November 1999/g;s%@libdir@%/etc%g;s%@configfile@%vche.conf%g" \
31       vche.1.in > ${pkgdir}/usr/share/man/man1/vche.1
32   sed "s/@version@/$pkgver/g;s/@releasedate@/November 1999/g;s%@libdir@%/etc%g;s%@configfile@%vche.conf%g" \
33       vche.conf.5.in > ${pkgdir}/usr/share/man/man5/vche.conf.5
34       
35   # config
36   install -m644 vche.conf /${pkgdir}/etc