summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c06603c60d93d4448dab1bd2ab19d9593f2041bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Lily Anatia Wilson <hotaru at thinkindifferent dot net>
# Contributor: Marcin Mielniczuk <marmistrz dot dev at zoho dot eu>

pkgname=wasi-sdk-bin
pkgver=17.0
pkgrel=1
pkgdesc="WASI-enabled WebAssembly C/C++ toolchain"
arch=('x86_64')
url="https://github.com/WebAssembly/${pkgname%%-bin}"
license=('Apache-2.0')
depends=('clang' 'lld')
options=('!strip')
source=(
    "https://github.com/WebAssembly/${pkgname%%-bin}/releases/download/${pkgname%%-bin}-${pkgver%%.*}/${pkgname%%-bin}-${pkgver}-linux.tar.gz"
)
sha512sums=('4d2ff0e55c427a3aefd57e9a19a35513f3a31cb73740880ef297f8c0fa402e31e6b1b91eee4cdb24cbb266c325df8d4b53d17ebc29c7b5529ba6e3f83a4ea1f0')

package() {
    _clang_version=$(clang --version | grep version | cut -d" " -f3)
    cd $srcdir
    mkdir -p "$pkgdir/opt/${pkgname%%-bin}"

    mv ${pkgname%%-bin}-${pkgver}/* "$pkgdir/opt/${pkgname%%-bin}/"
}
# vim:set ts=2 sw=2 et: