diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-03-26 16:02:06 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-03-26 17:51:02 +0200 |
commit | 19c7235ef59405f95c9df1b42e366326c4edf2a8 (patch) | |
tree | 29806d1b3e30fb0eeed6eebce12536d86387028f /testing/vis | |
parent | 57118bd35ee64a028b41ec51e70a54f423026559 (diff) | |
download | aports-19c7235ef59405f95c9df1b42e366326c4edf2a8.tar.bz2 aports-19c7235ef59405f95c9df1b42e366326c4edf2a8.tar.xz |
testing/vis: upgrade to 0.3
Also add a check function while being here.
Tests are kept in a separate repository and normally checked out as a
git submodule. However, the tarball we fetch from GitHub doesn't contain
the .git directory therefore we can't use git submodules. Instead we
download the tests manually and copy them to the $builddir in check().
Diffstat (limited to 'testing/vis')
-rw-r--r-- | testing/vis/APKBUILD | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/testing/vis/APKBUILD b/testing/vis/APKBUILD index 916a1294c6..557c1c6251 100644 --- a/testing/vis/APKBUILD +++ b/testing/vis/APKBUILD @@ -1,8 +1,9 @@ # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> pkgname=vis -pkgver=0.2 -pkgrel=0 +pkgver=0.3 +_testver=0.1 +pkgrel=1 pkgdesc="A vim like text editor" url="https://github.com/martanne/vis" arch="all" @@ -10,12 +11,16 @@ license="ISC" depends="!outils-vis lua5.2-lpeg" depends_dev="" makedepends="libtermkey-dev ncurses-dev acl-dev lua5.2-dev" +checkdepends="vim" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/martanne/$pkgname/archive/v$pkgver.tar.gz + $pkgname-test-$pkgver.tar.gz::https://github.com/martanne/$pkgname-test/archive/v$_testver.tar.gz fortify-source.patch" +_testdir="$srcdir"/$pkgname-test-$_testver builddir="$srcdir"/$pkgname-$pkgver + build() { cd "$builddir" ./configure \ @@ -26,15 +31,17 @@ build() { make || return 1 } +check() { + cp -r "$_testdir"/* "$builddir"/test/ + make -C "$builddir" test || return 1 +} + package() { make -C "$builddir" \ DESTDIR="$pkgdir" \ install || return 1 } -md5sums="60487df2369c6bf6bed0ee9eb8cfa07e vis-0.2.tar.gz -8f2a9c50a44a7a1a9f30c144d6aaa113 fortify-source.patch" -sha256sums="3e5b81d760849c56ee378421e9ba0f653c641bf78e7594f71d85357be99a752d vis-0.2.tar.gz -5722c02bf2d08c8700970831b428930ef2780234350c1d0716c709ffc01f7f92 fortify-source.patch" -sha512sums="ded2566105b890e21ee010f2f2809986e405f76bed2f7a969d2f818bcf437f3969a140ed0be2af7631e36b3c7fb6b73a3d715ba9ddb7fdd67a2e983b0765918a vis-0.2.tar.gz +sha512sums="e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62 vis-0.3.tar.gz +433a67892f27eb01f3ea6224e1ded393cd949b4d60f7c14656fdd526c02d2b309f63d39887d8d7ba11cbad3e183ab3cd1a913ac40aa29eadb7fa700eb76424b6 vis-test-0.3.tar.gz 53a2f70a67e4fdb7462904428bbd556f5452989ada746ec8d67b7a90aabbf806377ef7d66d760d0d74ab3101d4af2154b1a59403fce60b20ef11476242cba713 fortify-source.patch" |