From 450186370a14285c491f67998e9fb676ec53008b Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Mon, 17 Sep 2018 11:17:10 +0200 Subject: Add xwpe. --- xwpe/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++ xwpe/xwpe-1.5.30a-makefile.patch | 14 ++++++++++ 2 files changed, 70 insertions(+) create mode 100644 xwpe/PKGBUILD create mode 100644 xwpe/xwpe-1.5.30a-makefile.patch diff --git a/xwpe/PKGBUILD b/xwpe/PKGBUILD new file mode 100644 index 0000000..2f42805 --- /dev/null +++ b/xwpe/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Deposite Pirate + +pkgname=xwpe +pkgver=1.5.30a +pkgrel=1 +pkgdesc="A Borland IDE-like text editor" +arch=('i686' 'x86_64') +url="http://www.identicalsoftware.com/xwpe" +license=('GPL2') +depends=('ncurses' 'gpm' 'zlib' 'libice' 'libx11') +source=("http://www.identicalsoftware.com/xwpe/$pkgname-$pkgver.tar.gz" + 'xwpe-1.5.30a-makefile.patch') +sha256sums=('fce37a5dd3afd7102a73d187eda8b9d1ab88bf5db649f385b8cd13e72e0c7961' + 'SKIP') + +prepare() { + cd "${pkgname}-${pkgver}" + + # Allow building a version without X + patch -p1 -i ../xwpe-1.5.30a-makefile.patch +} + +build() { + cd "${pkgname}-${pkgver}" + CFLAGS="${CFLAGS}" ./configure \ + --prefix=/usr \ + --libdir='${prefix}/share' + make wpe + mv wpe wpe.save + make +} + +package() { + cd "${pkgname}-${pkgver}" + make install \ + prefix="${pkgdir}/usr" \ + MANDIR="${pkgdir}/usr/share/man" \ + + ( + cd "${pkgdir}/usr/bin" ; rm -f we wpe + ) + + install -m755 wpe.save "${pkgdir}/usr/bin/wpe" + + ( + cd "${pkgdir}/usr/bin" ; ln -sf wpe we + ) + + install -Dm644 xwpe.desktop \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + install -dm755 "${pkgdir}/usr/share/doc/${pkgname}" + + install -m644 CHANGELOG README \ + "${pkgdir}/usr/share/doc/${pkgname}" +} diff --git a/xwpe/xwpe-1.5.30a-makefile.patch b/xwpe/xwpe-1.5.30a-makefile.patch new file mode 100644 index 0000000..cdeb639 --- /dev/null +++ b/xwpe/xwpe-1.5.30a-makefile.patch @@ -0,0 +1,14 @@ +diff -r -u -N xwpe-1.5.30a/Makefile.in xwpe-1.5.30a-makefile/Makefile.in +--- xwpe-1.5.30a/Makefile.in 2005-07-07 03:53:09.000000000 +0200 ++++ xwpe-1.5.30a-makefile/Makefile.in 2018-08-28 03:52:32.781724830 +0200 +@@ -89,6 +89,10 @@ + model.h progr.h unixkeys.h unixmakr.h \ + Xwpe.h WeString.h WeXterm.h WeProg.h WeExpArr.h + ++wpe: $(OFILES) $(T_OFILES) ++ $(CC) $(CFLAGS) $(DEFS) -DNO_XWINDOWS $(OFILES) $(T_OFILES) \ ++ $(LIBS) -o wpe ++ + xwpe: $(OFILES) $(X_OFILES) $(T_OFILES) + $(CC) $(CFLAGS) $(DEFS) $(OFILES) $(X_OFILES) $(T_OFILES) \ + $(LIBS) $(XLIBS) -o xwpe -- cgit v1.2.3-70-g09d2