diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-07-12 13:09:26 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-07-12 13:11:41 +0200 |
commit | e2692ef8e8975e4527fcd006a41959b3ea654921 (patch) | |
tree | 00baf93d72c4f0232f2837dce6362a7d045d2bc6 /main/st | |
parent | 37097a0000ebe9443aaf925b5b448701aa0fd57a (diff) | |
download | aports-e2692ef8e8975e4527fcd006a41959b3ea654921.tar.bz2 aports-e2692ef8e8975e4527fcd006a41959b3ea654921.tar.xz |
main/st: cleanup and don't compile with debugging information
Diffstat (limited to 'main/st')
-rw-r--r-- | main/st/APKBUILD | 26 | ||||
-rw-r--r-- | main/st/cleanup-cflags.patch | 14 |
2 files changed, 24 insertions, 16 deletions
diff --git a/main/st/APKBUILD b/main/st/APKBUILD index 2559fb670a..96eaa7712f 100644 --- a/main/st/APKBUILD +++ b/main/st/APKBUILD @@ -1,7 +1,8 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=st pkgver=0.6 -pkgrel=2 +pkgrel=3 pkgdesc="a simple terminal implementation for X" url="http://st.suckless.org/" arch="all" @@ -12,27 +13,18 @@ makedepends="$depends_dev fontconfig-dev freetype-dev libx11-dev libxft-dev libxext-dev" install="" subpackages="$pkgname-doc" -source="http://dl.suckless.org/st/st-$pkgver.tar.gz +source="http://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz + cleanup-cflags.patch terminfo.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 -} - +builddir="$srcdir"/st-$pkgver build() { - cd "$_builddir" + cd "$builddir" make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make PREFIX=/usr DESTDIR="$pkgdir" install || return 1 mkdir -p "$pkgdir"/usr/share/applications @@ -46,12 +38,14 @@ Type=Application Icon=gnome-xterm Categories=System;TerminalEmulator; EOF - } md5sums="1a926f450b4eacb7e2f5ac5b8ffea7c8 st-0.6.tar.gz +7b352a681fd6d8567bd286d8b4a22b39 cleanup-cflags.patch 68a69a4b8c521392aad2c1ff9b77a043 terminfo.patch" sha256sums="85310c08c3814e099b5e45888f8ac7548640e69e9973e934d4fba38b03737a2b st-0.6.tar.gz +4aed2529406dc91d19dbe2bf8563d42a73d3d6a290ea9c12e897bf3a4237c043 cleanup-cflags.patch e103aa13cebf6f85be34c38b8457f69fdd1c168618bc07d7bba1d9b2ccf8ac6c terminfo.patch" sha512sums="31e4b6d2b27d6cea79d6a31dabd7ff4e08a8ab376f06c113123810c05eab25e3964482a6429eecd65c369983cc8ee3694f367e3894ed2cc740c67738c1898d29 st-0.6.tar.gz +d2083c4e6c577d3d4190b3f2d58898b5afdfeb5160def29958cf11433c59aea4917a799f447dffcaba4a7f80c989d88f6ce96234a8afd732653bf8a871484a1e cleanup-cflags.patch 9099d7c7dc557583179ec6d630419b067297520f788df6623236822cc4b6d2288ca93d25f3ae6c9169ca2a2357e5b7955eb1c0463b01efad5ee9c2e8c5db35ee terminfo.patch" diff --git a/main/st/cleanup-cflags.patch b/main/st/cleanup-cflags.patch new file mode 100644 index 0000000000..bf9755a2ae --- /dev/null +++ b/main/st/cleanup-cflags.patch @@ -0,0 +1,14 @@ +diff -upr st-0.6.orig/config.mk st-0.6/config.mk +--- st-0.6.orig/config.mk 2016-07-11 00:41:11.428451510 +0200 ++++ st-0.6/config.mk 2016-07-11 00:41:49.134970777 +0200 +@@ -20,8 +20,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lm -l + + # flags + CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600 +-CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS} +-LDFLAGS += -g ${LIBS} ++CFLAGS += -std=c99 -pedantic -Wall -Wvariadic-macros ${INCS} ${CPPFLAGS} ++LDFLAGS += ${LIBS} + + # compiler and linker + # CC = cc |