Date: Thursday, May 28, 2015 @ 11:59:34 Author: anthraxx Revision: 134263
moving hexer-0.1.8-3 to [community] Added: hexer/ hexer/repos/ hexer/trunk/ hexer/trunk/PKGBUILD hexer/trunk/fix-sig-sa_mask.patch -----------------------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ fix-sig-sa_mask.patch | 11 +++++++++++ 2 files changed, 48 insertions(+) Added: hexer/trunk/PKGBUILD =================================================================== --- hexer/trunk/PKGBUILD (rev 0) +++ hexer/trunk/PKGBUILD 2015-05-28 09:59:34 UTC (rev 134263) @@ -0,0 +1,37 @@ +# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net> +# Contributor: Magnus Therning <[email protected]> +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> + +pkgname=hexer +pkgver=0.1.8 +pkgrel=3 +pkgdesc="A multi buffer editor for binary files with vi-like interface" +arch=('i686' 'x86_64') +url="http://devel.ringlet.net/" +license=('custom') +depends=('ncurses') +source=(http://devel.ringlet.net/editors/${pkgname}/${pkgname}-${pkgver}.tar.gz + fix-sig-sa_mask.patch) +sha512sums=('c831b00f5ea201e38fc5bede991320b07f3e7c70043d53aed107f8bff8f102d2ecea3fb7f0d57dd7a079d8a5bbb0a84e01eca8a91723fdd76be2e066a8075df4' + '0ccaf8353fbe3aa5ac2c4c7ed1ebd9a5c4820533f383b6af29ec1b86a2d9e430b4996121600af8d1f0d068ac4f58cb971c6b881cdede710d560ba451554f044e') + +prepare() { + cd ${pkgname}-${pkgver} + cp config.{linux,h} + sed -i "s|/usr/local|/usr|" Makefile + sed -i "s|/man/|/share/man/|" Makefile + patch -p0 < "${srcdir}/fix-sig-sa_mask.patch" +} + +build() { + cd ${pkgname}-${pkgver} + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -Dm 644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim: ts=2 sw=2 et: Added: hexer/trunk/fix-sig-sa_mask.patch =================================================================== --- hexer/trunk/fix-sig-sa_mask.patch (rev 0) +++ hexer/trunk/fix-sig-sa_mask.patch 2015-05-28 09:59:34 UTC (rev 134263) @@ -0,0 +1,11 @@ +--- tio.c 2015-04-02 17:32:27.653607986 +0200 ++++ tio.c 2015-04-02 17:35:27.386616788 +0200 +@@ -816,7 +816,7 @@ + #ifdef SA_INTERRUPT + static struct sigaction act; + act.sa_handler = sigwinch_handler; +- act.sa_mask = 0; ++ sigemptyset(&act.sa_mask); + act.sa_flags = SA_INTERRUPT; + sigaction(SIGWINCH, &act, 0); + #else
