aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-24 10:43:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-24 10:43:07 +0000
commit27b42993848c39a9c02a8fe56544894b3c2577a2 (patch)
tree56bc9663b75a4151e7dbbbf03655cb3304c66acb /unmaintained
parent0ea1029195d1e3d761f34a381bc6748103d8b67e (diff)
downloadaports-27b42993848c39a9c02a8fe56544894b3c2577a2.tar.bz2
aports-27b42993848c39a9c02a8fe56544894b3c2577a2.tar.xz
testing/tbl: unmaintained
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/tbl/APKBUILD44
-rw-r--r--unmaintained/tbl/tbl-install.patch19
2 files changed, 63 insertions, 0 deletions
diff --git a/unmaintained/tbl/APKBUILD b/unmaintained/tbl/APKBUILD
new file mode 100644
index 0000000000..2f92f7fa27
--- /dev/null
+++ b/unmaintained/tbl/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=tbl
+pkgver=0.1.6
+pkgrel=0
+pkgdesc="Utility to format tables for troff"
+url="http://tbl.bsd.lv/"
+arch="all"
+license="ISC"
+depends=""
+makedepends=""
+install=""
+subpackages="$pkgname-doc"
+source="http://tbl.bsd.lv/snapshots/tbl-$pkgver.tar.gz
+ tbl-install.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch)
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" PREFIX=/usr MANDIR=/usr/share/man install
+}
+
+md5sums="a7d3029ae4275d62f19c6f3ffe656fac tbl-0.1.6.tar.gz
+e4f29245b659de9814ff1a7a1c98ffb2 tbl-install.patch"
+sha256sums="1b29c31da45687b7c64d28f002999718f8399ff3923976faa1abe8e96018fb4d tbl-0.1.6.tar.gz
+2ab6c3a0fb45179528b355241e6d7e09c423dfe043a1678dc7812ddd07e680b5 tbl-install.patch"
+sha512sums="f92fd586eb8d9a7715d3aa796f684e471380b0df685756e6a783971e1b421676719cd29a778babdd644233dbb68f328747452113dc188121b5f6e33edd8b3892 tbl-0.1.6.tar.gz
+da0bdb3982232eabd6c44650e1ae69b4831f69cadb7a5f3d5fb8e42c65cde28515ad713ee5622166bed78a7583fde102bf7633937072a49d8e38cb0ed5498b92 tbl-install.patch"
diff --git a/unmaintained/tbl/tbl-install.patch b/unmaintained/tbl/tbl-install.patch
new file mode 100644
index 0000000000..72465ea2d8
--- /dev/null
+++ b/unmaintained/tbl/tbl-install.patch
@@ -0,0 +1,19 @@
+--- ./Makefile.orig
++++ ./Makefile
+@@ -64,11 +64,11 @@
+ install -m 0444 tbl-$(VERSION).md5 $(PREFIX)/snapshots/tbl.md5
+
+ install:
+- mkdir -p $(BINDIR)
+- mkdir -p $(MANDIR)/man5
+- $(INSTALL_PROGRAM) tbl $(BINDIR)
+- $(INSTALL_MAN) tbl.5 $(MANDIR)/man5
+- $(INSTALL_MAN) tbl.1 $(MANDIR)/man1
++ mkdir -p $(DESTDIR)$(BINDIR)
++ mkdir -p $(DESTDIR)$(MANDIR)/man5
++ $(INSTALL_PROGRAM) tbl $(DESTDIR)$(BINDIR)
++ $(INSTALL_MAN) tbl.5 $(DESTDIR)$(MANDIR)/man5
++ $(INSTALL_MAN) tbl.1 $(DESTDIR)$(MANDIR)/man1
+
+ main.o: main.c tbl.h
+