summaryrefslogtreecommitdiff
path: root/community/manedit
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/manedit
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/manedit')
-rw-r--r--community/manedit/PKGBUILD56
-rw-r--r--community/manedit/manedit-1.2.1-fix-man-page.patch15
-rw-r--r--community/manedit/manedit.desktop9
3 files changed, 80 insertions, 0 deletions
diff --git a/community/manedit/PKGBUILD b/community/manedit/PKGBUILD
new file mode 100644
index 000000000..2631d4730
--- /dev/null
+++ b/community/manedit/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id: PKGBUILD 102171 2013-12-06 11:59:39Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=manedit
+pkgver=1.2.1
+pkgrel=4
+pkgdesc="An editor specifically tailored for UNIX manual pages"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://freecode.com/projects/manedit"
+depends=('gcc-libs' 'bzip2' 'zlib' 'gtk')
+source=("http://wolfsinger.com/~wolfpack/packages/${pkgname}-${pkgver}.tar.bz2"
+ 'manedit-1.2.1-fix-man-page.patch'
+ 'manedit.desktop')
+md5sums=('a7ee1835e32ed3c9279412af7caf13ef'
+ '60cb0c224a6659f8a8183006608f368b'
+ 'bac6986fc25dda6f0e27e3673eef4600')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Patch to fix generate man page
+ patch -Np1 -i ${srcdir}/manedit-1.2.1-fix-man-page.patch
+
+ env CFLAGS="${CFLAGS}" \
+ ./configure Linux \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --datadir=/usr/share \
+ --enable=bzip2 \
+ --enable=zlib \
+ --disable="arch-i486" \
+ --disable="arch-i586" \
+ --disable="arch-i686" \
+ --disable="arch-pentiumpro"
+
+ make all
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Fix strip error (tries to strip a shell script)
+ cp manedit/Makefile.install.UNIX{,.orig}
+ sed -e '/INST.*FLAGS.*-s$/s:-s::' \
+ manedit/Makefile.install.UNIX.orig > manedit/Makefile.install.UNIX
+
+ # Set man dir too or FHS is violated
+ make PREFIX="${pkgdir}/usr" \
+ MAN_DIR="${pkgdir}/usr/share/man/man1" \
+ ICONS_DIR="${pkgdir}/usr/share/pixmaps" install
+
+ # Install desktop file
+ install -Dm644 ${srcdir}/manedit.desktop "${pkgdir}/usr/share/applications/manedit.desktop"
+}
diff --git a/community/manedit/manedit-1.2.1-fix-man-page.patch b/community/manedit/manedit-1.2.1-fix-man-page.patch
new file mode 100644
index 000000000..77aad9a79
--- /dev/null
+++ b/community/manedit/manedit-1.2.1-fix-man-page.patch
@@ -0,0 +1,15 @@
+--- a/manedit/makefile_append.ini 2008-10-11 16:00:00.000000000 -0700
++++ b/manedit/makefile_append.ini 2009-11-20 15:33:47.000000000 -0800
+@@ -39,9 +39,9 @@
+
+ manpage:
+ @echo "Generating manual page $(BIN).1.bz2"
+- @-$(SED) 's|%%PREFIX%%|$(PREFIX)|g ; \
+- s|%%LOCALBASE%%|${LOCALBASE}|g ; \
+- s|%%X11BASE%%|${X11BASE}|g' $(BIN).1 > $(BIN).1.out
++ @-$(SED) -e 's|%%PREFIX%%|$(PREFIX)|g ;' \
++ -e 's|%%LOCALBASE%%|${LOCALBASE}|g ;' \
++ -e 's|%%X11BASE%%|${X11BASE}|g' $(BIN).1 > $(BIN).1.out
+ @-$(BZIP2) $(BIN).1.out --stdout > $(BIN).1.bz2
+
+ modules: $(OBJ_C) $(OBJ_CPP)
diff --git a/community/manedit/manedit.desktop b/community/manedit/manedit.desktop
new file mode 100644
index 000000000..030fb0ccf
--- /dev/null
+++ b/community/manedit/manedit.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Manpage Editor
+Comment=Create and edit UNIX manual pages
+Icon=/usr/share/pixmaps/manedit.xpm
+Exec=manedit
+Terminal=false
+Type=Application
+Categories=GNOME;Application;Development;
+StartupNotify=true \ No newline at end of file