From 2eeea190d1b3949bc4f68c22a476a127caaca305 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 13 Oct 2016 01:05:34 +0200 Subject: testing/sassc: improve abuild --- testing/sassc/APKBUILD | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) (limited to 'testing/sassc') diff --git a/testing/sassc/APKBUILD b/testing/sassc/APKBUILD index f8ef9f5267..da76a48fd1 100644 --- a/testing/sassc/APKBUILD +++ b/testing/sassc/APKBUILD @@ -7,38 +7,31 @@ url="https://github.com/sass/sassc" arch="all" license="MIT" depends="" -depends_dev="" -makedepends="$depends_dev libsass-dev autoconf automake libtool" -install="" -subpackages="" -source="${pkgname}-${pkgver}.tar.gz::https://github.com/sass/sassc/archive/$pkgver.tar.gz" - -_builddir="$srcdir"/$pkgname-$pkgver +makedepends="libsass-dev autoconf automake libtool" +source="$pkgname-$pkgver.tar.gz::https://github.com/sass/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -s -p1 -i "$srcdir"/$i || return 1;; - esac - done - autoreconf -vif + default_prepare || return 1 + + cd "$builddir" + autoreconf -vif } build() { - cd "$_builddir" - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --disable-static \ - || return 1 - make || return 1 + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 + make || return 1 } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 } md5sums="4aa32fa985933b6ea6a3c574cf73c431 sassc-3.3.6.tar.gz" -- cgit v1.2.3