summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD62
1 files changed, 28 insertions, 34 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 70f4d05a241..401285a0b68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,36 @@
-# Maintainer: Konstantinos Foutzopoulos <mail@konfou.xyz>
+# Maintainer: Rui Marques <aur@ruimarques.xyz>
pkgname=inferno
-pkgver=20150328
+pkgver=0.10.9
pkgrel=2
-pkgdesc='A compact operating system designed for building distributed and networked systems. (Prebuilt)'
-arch=('any')
-url='http://www.vitanuova.com/inferno/'
-license=('GPL2')
-depends_i686=('gcc-libs' 'libx11' 'libext')
-depends_x86_64=('lib32-gcc-libs' 'lib32-libx11' 'lib32-libxext')
-#makedepends_i686=('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
+pkgdesc="A Rust port of FlameGraph"
+arch=('x86_64')
+url="https://github.com/jonhoo/inferno"
+license=('CDDL')
+depends=('gcc-libs')
+makedepends=('rust')
+provides=(
+ 'inferno-collapse-perf'
+ 'inferno-collapse-dtrace'
+ 'inferno-collapse-guess'
+ 'inferno-flamegraph'
+ 'inferno-diff-folded'
+)
+conflicts=('inferno-git')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
+sha256sums=('be7339159f6d889a89a3c91746487375b08fdfcb99196e511c2e8d4077687ff6')
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
+ cd "$pkgname-$pkgver"
+ cargo build --release
}
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"
-} \ No newline at end of file
+ cd "$pkgname-$pkgver"
+
+ install -Dm755 "target/release/inferno-collapse-perf" "${pkgdir}/usr/bin/inferno-collapse-perf"
+ install -Dm755 "target/release/inferno-collapse-dtrace" "${pkgdir}/usr/bin/inferno-collapse-dtrace"
+ install -Dm755 "target/release/inferno-collapse-guess" "${pkgdir}/usr/bin/inferno-collapse-guess"
+ install -Dm755 "target/release/inferno-flamegraph" "${pkgdir}/usr/bin/inferno-flamegraph"
+ install -Dm755 "target/release/inferno-diff-folded" "${pkgdir}/usr/bin/inferno-diff-folded"
+}