# Maintainer: Jerome Leclanche # Contributor: Isaac Dupree pkgname=libsass pkgver=3.4.5.r14.gb3262c1a pkgrel=1 pkgdesc="C implementation of Sass CSS preprocessor (library)." arch=("x86_64") url="http://libsass.org/" license=("MIT") options=('!buildflags') makedepends=('git') source=(git+https://github.com/sass/libsass.git#commit=6c8bbdcee9c77e02639cd88ef11d16df87be36f5^) sha512sums=('SKIP') pkgver() { cd $pkgname git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd $pkgname export LIBSASS_VERSION="$pkgver" CXXFLAGS="-fsanitize=address" autoreconf -i ./configure --prefix=/usr make } package() { cd $pkgname make DESTDIR="$pkgdir/" install install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }