# Maintainer: Jef Roosens # Contributor: Dimitris Kiziridis _pkgname=vlang pkgname=vlang-bin pkgver=0.4.5 pkgrel=1 pkgdesc='Simple, fast, safe, compiled language for developing maintainable software (binary release)' arch=('x86_64') url='https://vlang.io' license=('MIT') conflicts=('v' 'vlang' 'vlang-git') provides=('vlang') depends=('glibc') optdepends=('glfw: Needed for graphics support' 'freetype2: Needed for graphics support' 'openssl: Needed for http support') source=("${_pkgname}-${pkgver}.zip::https://github.com/vlang/v/releases/download/${pkgver}/v_linux.zip") sha256sums=('1e9650c26b9453835f3e34b0ebfcdb572a6324530abaece0bc3494d3bd314ee8') sha512sums=('b06aa2f7a67e58b0f3e6b86e1d682a35b97b4e1269a20c34b1b2180e7896d21341adcf19a8f139e3e6110ac310b5aae0d0fc3837a767ae07472506650214bea2') build() { cd v # Binaries for the tools are not provided with the "binary" release, so we # still have to build these. LDFLAGS= ./v build-tools } package() { cd v install -d "${pkgdir}/usr/lib/vlang" "${pkgdir}/usr/share/vlang" "${pkgdir}/usr/bin" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm755 v "${pkgdir}/usr/lib/vlang" cp -a cmd "${pkgdir}/usr/lib/vlang/" cp -a examples "${pkgdir}/usr/share/vlang/" cp -a thirdparty "${pkgdir}/usr/lib/vlang/" cp -a vlib "${pkgdir}/usr/lib/vlang/" cp v.mod "${pkgdir}/usr/lib/vlang/" ln -s /usr/lib/vlang/v "${pkgdir}/usr/bin/v" touch "${pkgdir}/usr/lib/vlang/cmd/tools/.disable_autorecompilation" } # vim: ft=bash