community/tilda: clean up APKBUILD, added check() function

This commit is contained in:
Francesco Colista 2017-06-19 09:24:15 +00:00
parent b7b12019f7
commit c2608d3ee6

View File

@ -7,37 +7,27 @@ pkgdesc="A Gtk based drop down terminal for Linux and Unix"
url="https://github.com/lanoxx/tilda" url="https://github.com/lanoxx/tilda"
arch="all" arch="all"
license="GPL" license="GPL"
depends="" makedepends="automake autoconf libtool confuse-dev vte3-dev"
depends_dev=""
makedepends="$depends_dev automake autoconf libtool confuse-dev vte3-dev"
install=""
subpackages="$pkgname-lang" subpackages="$pkgname-lang"
source="https://github.com/lanoxx/$pkgname/archive/$pkgname-$pkgver.tar.gz" source="https://github.com/lanoxx/$pkgname/archive/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver
_builddir="$srcdir"/$pkgname-$pkgname-$pkgver check() {
prepare() { cd "$builddir"
local i make check
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
} }
build() { build() {
cd "$_builddir" cd "$builddir"
./autogen.sh ./autogen.sh
./configure \ ./configure \
--prefix=/usr --prefix=/usr
make || return 1 make
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
} }
md5sums="785b0df315135ed283715f823b78cf87 tilda-1.3.3.tar.gz"
sha256sums="71baa5572c498e5b3e94f5b57e8118c1ef0fdaea269a5b2425208e1adec284b1 tilda-1.3.3.tar.gz"
sha512sums="7327159201cd1a17a3633bd8d399283564487d3bf36ff16d31d4efd3839ddf79661d3160fe67c85db2f60bc5283ac4ff2d8ea0738e8ea7dc3ce538cfcb68f951 tilda-1.3.3.tar.gz" sha512sums="7327159201cd1a17a3633bd8d399283564487d3bf36ff16d31d4efd3839ddf79661d3160fe67c85db2f60bc5283ac4ff2d8ea0738e8ea7dc3ce538cfcb68f951 tilda-1.3.3.tar.gz"