summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6a925619769bc4f3eb4ae299bc2e04ce4e56d7e (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
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Antonio Prates <hello@aprates.dev>

pkgname=fatscript-fry
pkgver=3.4.0
pkgrel=1
pkgdesc="fry - FatScript Interpreter"
arch=('any')
url="https://fatscript.org/"
license=('GPL3')
groups=('fatscript')
depends=('libcurl-compat')
makedepends=('git' 'gcc' 'bash' 'libcurl-compat')
optdepends=(
  'openssl: for SSL/TLS support'
  'libffi: for DLL/FFI support'
)
source=("git+https://gitlab.com/fatscript/fry.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
  mv "${srcdir}/fry" "${srcdir}/${pkgname}"
}

build() {
  cd "${srcdir}/${pkgname}"
  ./compile.sh
}

check() {
  cd "${srcdir}/${pkgname}"
  ./run_tests.sh
}

package() {
  cd "${srcdir}/${pkgname}"
  install -Dm755 bin/fry "${pkgdir}/usr/local/bin/fry"
  install -Dm644 man/fry.1 "${pkgdir}/usr/local/man/man1/fry.1"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  
  if [ -d "/usr/share/nano/" ]; then
    install -Dm644 extras/fat.nanorc "${pkgdir}/usr/share/nano/fat.nanorc"
  fi
}