summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddff762e51d2328375c4f577817548e190d3db5b (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
# Maintainer: Konstantinos Foutzopoulos <mail@konfou.xyz>

pkgname=inferno
pkgver=20150328
pkgrel=1
pkgdesc='A compact operating system designed for building distributed and networked systems. (Prebuilt)'
arch=('any')
url='https://bitbucket.org/inferno-os/inferno-os'
license=('GPL2')
#depends=('gcc-libs' 'libx11' 'libext')
depends_x86_64=('lib32-gcc-libs' 'lib32-libx11' 'lib32-libxext')
#makedepends=('gcc' 'glibc' 'mercurial')
#makedepends_x86_64=('gcc-multilib' 'lib32-glibc' 'mercurial')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("http://www.vitanuova.com/dist/4e/${pkgname}-${pkgver}.tgz"
        "make-install-root.sh")
sha256sums=('3f648d01a5264e1e4fd773824581205cdf9efe0a2e505298d07db21e1828ef7f'
            'SKIP')
install=${pkgname}.install

build() {
  cat > "${pkgname}/inferno" << 'END'
#!/usr/bin/env bash
ROOT="/usr/local/inferno"
IBIN="$ROOT/Linux/386/bin"
export PATH="$IBIN:$PATH"
export EMU="-r$ROOT"
exec emu "$@"
END
}

package() {
  export IROOT="usr/local/inferno"
  ./make-install-root.sh "${pkgname}" "${pkgdir}/${IROOT}"
  find "${pkgdir}/${IROOT}" -path "${pkgdir}/${IROOT}/Linux" -prune -o -exec chmod g+w {} +
  mkdir -p "${pkgdir}/${IROOT}/Linux"
  cp -r "${pkgname}/Linux/386" "${pkgdir}/${IROOT}/Linux/"
  mkdir -p "${pkgdir}/usr/bin"
  install -D -m755 "${pkgname}/inferno" "${pkgdir}/usr/bin/inferno"
  install -D -m644 "${pkgname}/NOTICE" "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE"
}