# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=sassc
pkgver=3.6.1
pkgrel=0
pkgdesc="CSS preprocessor and extension language compiler"
url="https://sass-lang.com/"
arch="all"
license="MIT"
depends=""
makedepends="autoconf automake libsass-dev libtool"
subpackages=""
source="sassc-$pkgver.tar.gz::https://github.com/sass/sassc/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	export SASSC_VERSION=$pkgver
	autoreconf --force --install
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b6df8f481db0737ca08808c0849dcbd83e80799d883271d382607b7a74028153195f5f9c26768ffe1a9a92ee8c26be3c382ad7b3a5336eb6e4a0dad58132690e  sassc-3.6.1.tar.gz"