pkgname=libsass pkgver=3.6.6 pkgdesc='C implementation of Sass CSS preprocessor (library)' arch=(x86_64) homepage="https://sass-lang.com/$pkgname/" license=(MIT) sources=("${pkgname}-${pkgver}.tar.gz") urls=("https://github.com/sass/libsass/archive/${pkgver}.tar.gz") sha512sums=("659828c854af391c10a16954425fbeeb5fa036189dea45555cd8046338f7469eb7f8d84134030ce644921514b8f397ef6070b56dfb116ea7ce94328d64576518") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 [[ -f VERSION ]] || echo "${pkgver}" > VERSION autoreconf -i } src_build() { local conf_args=( --prefix=/usr --disable-static --enable-shared ) ./configure "${conf_args[@]}" make } src_install() { make DESTDIR="$pkgdir" install install -vDm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } # vim:ft=sh syn=sh et sw=2: