summaryrefslogtreecommitdiffstats
path: root/main/st
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-06 08:12:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-06 08:12:28 +0000
commit04630d7b226f2d3e9a6e05cfb635ecc60caef18d (patch)
treeb00786d2dce7d8714ad0b06ab739410701356f8c /main/st
parente1bcf0f24072271fca72671f2f064fb40bf9d0ff (diff)
downloadaports-04630d7b226f2d3e9a6e05cfb635ecc60caef18d.tar.bz2
aports-04630d7b226f2d3e9a6e05cfb635ecc60caef18d.tar.xz
main/st: moved from testing
Diffstat (limited to 'main/st')
-rw-r--r--main/st/0001-set-terminfo-directory-in-config.mk.patch42
-rw-r--r--main/st/APKBUILD46
2 files changed, 88 insertions, 0 deletions
diff --git a/main/st/0001-set-terminfo-directory-in-config.mk.patch b/main/st/0001-set-terminfo-directory-in-config.mk.patch
new file mode 100644
index 000000000..ba8e2de0b
--- /dev/null
+++ b/main/st/0001-set-terminfo-directory-in-config.mk.patch
@@ -0,0 +1,42 @@
+From 5c574dcc64ff64160329d93576df25f9e186e4e3 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Wed, 8 May 2013 13:42:57 +0200
+Subject: [PATCH] set terminfo directory in config.mk
+
+This helps packagers to install the terminfo at proper place rather than
+in users homedir.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ Makefile | 2 +-
+ config.mk | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 52af636..3ac74a1 100644
+--- a/Makefile
++++ b/Makefile
+@@ -49,7 +49,7 @@ install: all
+ @sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1
+ @echo Please see the README file regarding the terminfo entry of st.
+- @tic -s st.info
++ @tic -o ${DESTDIR}${TERMINFODIR} -s st.info
+
+ uninstall:
+ @echo removing executable file from ${DESTDIR}${PREFIX}/bin
+diff --git a/config.mk b/config.mk
+index 9431de2..3ac9bac 100644
+--- a/config.mk
++++ b/config.mk
+@@ -6,6 +6,7 @@ VERSION = 0.4.1
+ # paths
+ PREFIX = /usr/local
+ MANPREFIX = ${PREFIX}/share/man
++TERMINFODIR = $$HOME/.terminfo
+
+ X11INC = /usr/X11R6/include
+ X11LIB = /usr/X11R6/lib
+--
+1.8.2.2
+
diff --git a/main/st/APKBUILD b/main/st/APKBUILD
new file mode 100644
index 000000000..d788edded
--- /dev/null
+++ b/main/st/APKBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=st
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="a simple terminal implementation for X"
+url="http://st.suckless.org/"
+arch="all"
+license="MIT/X"
+depends=""
+depends_dev=""
+makedepends="$depends_dev fontconfig-dev freetype-dev libx11-dev libxft-dev
+ libxext-dev ncurses"
+install=""
+subpackages="$pkgname-doc"
+source="http://dl.suckless.org/st/st-$pkgver.tar.gz
+ 0001-set-terminfo-directory-in-config.mk.patch"
+
+_builddir="$srcdir"/st-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" TERMINFODIR=/usr/share/terminfo \
+ install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="fa03d702b6d67de395975155c87084e9 st-0.4.1.tar.gz
+28103a441b3d307f5b18e91a014066ee 0001-set-terminfo-directory-in-config.mk.patch"
+sha256sums="ee2f93c6d8cd95a5ab47423eeebde4a474be470309ceee33fa3c7757eae2bf31 st-0.4.1.tar.gz
+4d1f63941288eddc574c0edf34633e918a4008727c42b2a17fc485de7808ce8c 0001-set-terminfo-directory-in-config.mk.patch"
+sha512sums="06a75cdf7d22c64c1331276b0f58577c3c42c1c2edcb41a33a3c37f7b65bd284a3b006dd94e0dc081f42f028dd18b60f278e8b3f33a1cf6611b1398bff80df7d st-0.4.1.tar.gz
+5ea77eb64c2628bc94477924421013e73c0753a998ed3b2ad21d89a887c11b87349e9569f82c79b02fddacb4b1d9e0c76743fd02dae89dc625c6c68806ee7e3c 0001-set-terminfo-directory-in-config.mk.patch"