diff options
author | Uffe Jakobsen | 2022-07-20 23:17:31 +0200 |
---|---|---|
committer | Uffe Jakobsen | 2022-07-20 23:17:31 +0200 |
commit | 9edd83ef61fb8c824997f8c8883e83c036e004d6 (patch) | |
tree | 0da6f188281daac5ed19187090a9774652687fed /PKGBUILD | |
parent | 81096f7599b5dee541126fb223f22f5f61f2220c (diff) | |
download | aur-hexcurse.tar.gz |
Add more patches to build hexcurse with modern compilers...
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -1,4 +1,5 @@ -# Maintainer: SpepS <dreamspepser at yahoo dot it> +# Maintainer: uffe < uffe at uffe dat org > +# Contributor: SpepS <dreamspepser at yahoo dot it> # Contributor: eric <eric@archlinux.org> pkgname=hexcurse @@ -6,37 +7,40 @@ pkgver=1.60.0 pkgrel=1 pkgdesc="Versatile ncurses-based hex editor." arch=('i686' 'x86_64') -#url="http://directory.fsf.org/project/HexCurse/" url="https://github.com/LonnyGomes/hexcurse" license=('GPL') depends=('ncurses') options=('!makeflags') -source=("$pkgname-$pkgver.tgz::https://github.com/LonnyGomes/hexcurse/archive/v$pkgver.tar.gz") -#source=("http://www.sourcefiles.org/Editors/Hex/$pkgname-$pkgver.tar.gz") -#source=("http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/$pkgname-$pkgver.tar.gz") -#source=("https://github.com/LonnyGomes/hexcurse/archive/hexcurse-$pkgver.tar.gz") +source=("${pkgname}-${pkgver}.tgz::https://github.com/LonnyGomes/hexcurse/archive/v${pkgver}.tar.gz") md5sums=('cb24b564bea21a615a5c6a2ee30d6cad') prepare() { - cd "$srcdir/$pkgname-$pkgver" + cd "${srcdir}/${pkgname}-${pkgver}" + # gcc does not like clever people sed -i 's|buffer, 1,|NULL, 0,|' src/hexcurse.c sed -i 's|char buffer\[1\];|//&|' src/hexcurse.c sed -i 's|2*MAXY);|&\nbreak;|' src/acceptch.c + + patch -p0 < ${startdir}/file_ptr.patch + patch -p0 < ${startdir}/ncurses.patch + patch -p0 < ${startdir}/boundry.patch } build() { - cd "$srcdir/$pkgname-$pkgver" + cd "${srcdir}/${pkgname}-${pkgver}" - ./configure \ - --prefix=/usr \ - --mandir=/usr/share/man + ./configure --prefix=/usr --mandir=/usr/share/man make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="$pkgdir/" install + make DESTDIR="${pkgdir}/" install } + +# +# EOF +# |