pkgname=sassc
pkgver=3.6.2
pkgrel=5
pkgdesc='C implementation of Sass CSS preprocessor'
arch=(x86_64)
url='https://sass-lang.com'
license=(MIT)
depends=(libsass)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/sass/sassc/archive/${pkgver}.tar.gz")
sha256sums=("608dc9002b45a91d11ed59e352469ecc05e4f58fc1259fc9a9f5b8f0f8348a03")

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:
