pkgname=netsurf-buildsystem
_name=buildsystem
pkgver=1.10
pkgdesc="Build system used for netsurf and its libraries"
homepage="https://www.netsurf-browser.org"
license=("MIT")
sources=("${_name}-${pkgver}.tar.gz")
urls=("https://download.netsurf-browser.org/libs/releases/${sources[0]}")
sha512sums=("0b0f9114567e5c0807bbf066f1c507f386dfb43bf993e3fe487b3c77edc6cee8ea573ca1105558e48b78b2c97857791fe1fe65af8e95fa0f4e205ef701677670")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
  sed -e 's:/bin/which:which:' -i "makefiles/Makefile.tools"
}

src_build() {
  sed -i 's:-Werror::' Makefile
  make PREFIX=/usr #COMPONENT_TYPE=lib-shared
}

src_install() {
  make DESTDIR="$pkgdir" PREFIX=/usr install
}


# vim:ft=sh syn=sh et sw=2:
