diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-13 01:05:34 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-13 01:07:01 +0200 |
commit | 2eeea190d1b3949bc4f68c22a476a127caaca305 (patch) | |
tree | 664f5bded26bc940e45310aa4eabf8cc1a72dd1c /testing/sassc | |
parent | 8a48bc5857d2b62021a2e60bc742f819ae0913af (diff) | |
download | aports-2eeea190d1b3949bc4f68c22a476a127caaca305.tar.bz2 aports-2eeea190d1b3949bc4f68c22a476a127caaca305.tar.xz |
testing/sassc: improve abuild
Diffstat (limited to 'testing/sassc')
-rw-r--r-- | testing/sassc/APKBUILD | 41 |
1 files changed, 17 insertions, 24 deletions
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" |