# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libsass
pkgver=3.6.4
pkgrel=0
pkgdesc="Library for preprocessing CSS"
url="https://sass-lang.com/libsass"
arch="all"
options="!check"  # Tests require sassc, which requires this library.
license="MIT"
depends=""
# There is no .so symlink in the -dev package.
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends=""
subpackages="$pkgname-dev"
source="libsass-$pkgver.tar.gz::https://github.com/sass/libsass/archive/$pkgver.tar.gz"

build() {
	make BUILD="shared"
}

package() {
	mkdir -p "$pkgdir"
	make BUILD="shared" PREFIX="/usr" DESTDIR="$pkgdir" install
}

sha512sums="1f79553be31949d45adf440dcbcf4b828a7e4f71c6f63f288f99451fccc490ebf0c68c58d91deabede37962e35a8cf9af8b0d60d89349fd0adea1ac061c8c2c8  libsass-3.6.4.tar.gz"