aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libsass/APKBUILD
blob: c118d43836cc8318315587bf3e22774a5794efe9 (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
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Thomas Boerger <thomas@webhippie.de>
pkgname=libsass
pkgver=3.3.2
pkgrel=0
pkgdesc="A C/C++ implementation of a Sass compiler"
url="http://libsass.org"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev"
source="libsass-$pkgver.tar.gz::https://github.com/sass/libsass/archive/$pkgver.tar.gz"

_builddir="$srcdir"/libsass-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -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 install DESTDIR="$pkgdir" || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="3bd94bd35fbbacaf2db25efb7470b544  libsass-3.3.2.tar.gz"
sha256sums="affb7efaa7e152e576cc1d510c662ebe067b0b9e9228ad2937dcafdd4431b573  libsass-3.3.2.tar.gz"
sha512sums="4cb2cba562bc5809f84aeb93638c99d63967808673939f96fe816ce008a478e04a1f9e8cdb5db2675131c8af7668ef037b7c46db9fa264c51d52b41a2e27904c  libsass-3.3.2.tar.gz"