summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c929ac2a87d0e3167901e0c4551cbd8cb5c39d7 (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
27
28
29
30
31
32
# Maintainer: Sierra <sierra at casuallyblue dot dev>
pkgname="mirth-git"
pkgver=0.0.1
pkgrel=1
pkgdesc=" Compiler for the Mirth programming language"
arch=('i686' 'x86_64')
url="https://github.com/mirth-lang/mirth"
license=('BSD0')
groups=()
makedepends=('git' 'gcc' 'make')
conflicts=("mirth")
provides=("mirth")
source=(mirth::git+https://github.com/mirth-lang/mirth.git)
sha256sums=(SKIP)

build() {
  cd "${srcdir}/mirth"

  make build
}

package() {
  cd "${srcdir}/mirth"

  install -Dm755 bin/mirth2 "${pkgdir}/usr/bin/mirth"

  cd src

  find std -type f -exec install -Dm 644 "{}" "${pkgdir}/usr/lib/mirth/{}" \;
  find posix -type f -exec install -Dm 644 "{}" "${pkgdir}/usr/lib/mirth/{}" \;
  find args -type f -exec install -Dm 644 "{}" "${pkgdir}/usr/lib/mirth/{}" \;
}