summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. A. López-Valencia2015-06-11 21:31:42 -0500
committerP. A. López-Valencia2015-06-11 21:31:42 -0500
commitcdb6d100ad25aa126c673a6bbcdc5de0a347b90c (patch)
tree5e0385f322b7d7b6de56cb0ee9291233f1465fdd
downloadaur-cdb6d100ad25aa126c673a6bbcdc5de0a347b90c.tar.gz
groff-git 1.22.3.r2775-1
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore15
-rw-r--r--PKGBUILD62
-rw-r--r--groff-git.install22
-rw-r--r--site.tmac16
5 files changed, 140 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2563f66bb30
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = groff-git
+ pkgdesc = GNU Troff. Official git trunk.
+ pkgver = 1.22.3.r2775
+ pkgrel = 1
+ url = http://www.gnu.org/software/groff/
+ install = groff-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = perl
+ depends = gcc-libs
+ depends = netpbm
+ depends = psutils
+ depends = ghostscript
+ depends = libxaw
+ provides = groff
+ conflicts = groff
+ source = groff-git::git://git.savannah.gnu.org/groff.git
+ source = site.tmac
+ md5sums = SKIP
+ md5sums = a1fedafd7863b37968d32ad9ae1d8c13
+
+pkgname = groff-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..523cf911834
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+*~
+pkg/
+src/
+*.gz
+*.bz2
+*.xz
+*.lzo
+*.xz4
+*.tgz
+*.tbz
+*.txz
+*.tar
+*.jar
+*.zip
+groff-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6d5f68396a4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# See AUR interface for current maintainer.
+
+pkgname=groff-git
+pkgver=1.22.3.r2775
+pkgrel=1
+pkgdesc="GNU Troff. Official git trunk."
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/groff/"
+license=('GPL')
+depends=('perl' 'gcc-libs' 'netpbm' 'psutils' 'ghostscript' 'libxaw')
+makedepends=('git')
+conflicts=('groff')
+provides=('groff')
+install="$pkgname".install
+source=("$pkgname::git://git.savannah.gnu.org/groff.git"
+ 'site.tmac')
+md5sums=('SKIP'
+ 'a1fedafd7863b37968d32ad9ae1d8c13')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "%s.%s.r%s" "$(cat -s VERSION)" "$(cat -s REVISION)"\
+ "$(git rev-list --count HEAD)"
+}
+
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ ./bootstrap
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ ./configure \
+ --prefix=/usr \
+ --with-x \
+ --with-appresdir=/usr/share/X11/app-defaults \
+ --with-doc=yes
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/" install
+
+ ## Copypaste from core package's PKGBUILD...
+
+ # add compatibility symlinks
+ ln -s eqn $pkgdir/usr/bin/geqn
+ ln -s tbl $pkgdir/usr/bin/gtbl
+ ln -s soelim $pkgdir/usr/bin/zsoelim
+
+ # FS33760 - TERMCAP variables not followed
+ # TODO: everyone is doing this - find out why upstream does not...
+ cat $srcdir/site.tmac >> \
+ $pkgdir/usr/share/groff/site-tmac/man.local
+ cat $srcdir/site.tmac >> \
+ $pkgdir/usr/share/groff/site-tmac/mdoc.local
+}
+
+# vim:set ft=sh ts=2 sw=2 et:
diff --git a/groff-git.install b/groff-git.install
new file mode 100644
index 00000000000..5098fd7b595
--- /dev/null
+++ b/groff-git.install
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(groff.info groff.info-1 groff.info-2)
+
+post_install() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/site.tmac b/site.tmac
new file mode 100644
index 00000000000..8ef1040ca4a
--- /dev/null
+++ b/site.tmac
@@ -0,0 +1,16 @@
+.
+.if n \{\
+. \" Character translations for non-keyboard
+. \" characters - to make them searchable
+. if '\*[.T]'utf8' \{\
+. char \- \N'45'
+. char - \N'45'
+. char ' \N'39'
+. char \' \N'39'
+. \}
+.
+. \" Shut off SGR by default (groff colors)
+. \" Require GROFF_SGR envvar defined to turn it on
+. if '\V[GROFF_SGR]'' \
+. output x X tty: sgr 0
+.\}