aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sassc/APKBUILD
blob: c33eed4bb4cacb3a0af75a5e0af2dd68a39a6419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=sassc
pkgver=3.3.2
pkgrel=0
pkgdesc="Libsass command line driver"
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

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
}

build() {
  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
}

md5sums="551a5fe1ed415a0443d3a7ffb49631e8  sassc-3.3.2.tar.gz"
sha256sums="15a2b2698639dfdc7bd6a5ba7a9ecdaf8ebb9f15503fb04dea1be3133308e41d  sassc-3.3.2.tar.gz"
sha512sums="645125e3d8a481842f42c955fef77cb0eabe9b019abb905bb3c4a7db7d7911cb0911cc07a1a6c933fba143042a305cb3ff283d280253c9db4127cd15ac38a96f  sassc-3.3.2.tar.gz"