diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-07 15:10:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-18 16:44:36 +0000 |
commit | 5c6b0637d270d25968a7a4f910157b7a7c10a0de (patch) | |
tree | 99023284de88eb286fa4aa2ed293f466ff96e323 /main/termrec | |
parent | 130f87f1ac892b50d18167bdf8d901ae07e3bccb (diff) | |
download | aports-5c6b0637d270d25968a7a4f910157b7a7c10a0de.tar.bz2 aports-5c6b0637d270d25968a7a4f910157b7a7c10a0de.tar.xz |
main/termrec: modernize and add check
Diffstat (limited to 'main/termrec')
-rw-r--r-- | main/termrec/APKBUILD | 46 | ||||
-rw-r--r-- | main/termrec/Fix-a-bashism-in-the-testsuite.patch | 26 |
2 files changed, 46 insertions, 26 deletions
diff --git a/main/termrec/APKBUILD b/main/termrec/APKBUILD index 5417ad165b..2accefcf5b 100644 --- a/main/termrec/APKBUILD +++ b/main/termrec/APKBUILD @@ -2,41 +2,35 @@ # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> pkgname=termrec pkgver=0.17 -pkgrel=0 -pkgdesc="termrec is a program for recording "videos" of terminal output" +pkgrel=1 +pkgdesc="termrec is a program for recording videos of terminal output" url="http://angband.pl/termrec.html" arch="all" license="GPL" -depends="" -depends_dev="" -makedepends="zlib-dev" -install="" +makedepends="zlib-dev bzip2-dev" +checkdepends="xz-dev autoconf" subpackages="$pkgname-dev $pkgname-doc" -source="http://prdownloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz" +source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz + Fix-a-bashism-in-the-testsuite.patch" options="libtool" -_builddir=${srcdir}/${pkgname}-${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/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure --prefix=/usr - make || return 1 - } + make +} + +check() { + cd "$builddir" + make check +} package() { - cd "$_builddir" - make DESTDIR="$pkgdir/" install - } + cd "$builddir" + make DESTDIR="$pkgdir/" install +} -md5sums="4d0bc41411196a81157a72b68736a0f4 termrec-0.17.tar.xz" -sha256sums="62f02c245b36d9059aef91a70fa8daee7cd946f22eac2947a1204d7bf4e63473 termrec-0.17.tar.xz" -sha512sums="43b9649b9dfff0b01fc545a388b21341f40667b176b585c160a28efa6b2cde1ef1d60770423c5739d790d6ad2e53ee7f81ad0ab28545d595a442f94d10a52e58 termrec-0.17.tar.xz" +sha512sums="43b9649b9dfff0b01fc545a388b21341f40667b176b585c160a28efa6b2cde1ef1d60770423c5739d790d6ad2e53ee7f81ad0ab28545d595a442f94d10a52e58 termrec-0.17.tar.xz +7b2de6d264db3644380cfd6e1b4266f7e1e371621f8b96f57c7cd5f4dbf19a5656a31e6538e7411a21a0f5613df1ffcccb21a544d345755232050fd6595e1e53 Fix-a-bashism-in-the-testsuite.patch" diff --git a/main/termrec/Fix-a-bashism-in-the-testsuite.patch b/main/termrec/Fix-a-bashism-in-the-testsuite.patch new file mode 100644 index 0000000000..c72204b483 --- /dev/null +++ b/main/termrec/Fix-a-bashism-in-the-testsuite.patch @@ -0,0 +1,26 @@ +From 0875aeaf4d1f4c1c76e2a9c5213a5072a072fb25 Mon Sep 17 00:00:00 2001 +From: Adam Borowski <kilobyte@angband.pl> +Date: Tue, 1 Sep 2015 09:11:29 +0200 +Subject: [PATCH] Fix a bashism in the testsuite. + +--- + tests/testsuite.at | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tests/testsuite.at b/tests/testsuite.at +index de246f3..7b8f486 100644 +--- a/tests/testsuite.at ++++ b/tests/testsuite.at +@@ -35,7 +35,8 @@ AT_SETUP([vt100 sequences]) + for x in "$top_srcdir/tests/vt.in/"* + do + unescape <"$x" >stdin +- cat "${x/vt.in/vt.out}" >expout ++ y="$(echo "$x"|sed 's/vt\.in/vt.out/')" ++ cat "$y" >expout + AT_CHECK([vt -d <stdin],,[expout]) + done + AT_CLEANUP +-- +2.14.1 + |