From fbaa0e02ab71140eb2315277395ff43c1dc3f45f Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 2 Nov 2015 21:09:52 -0300 Subject: realtimeconfigquickscan-git: add new package to [pcr] --- pcr/realtimeconfigquickscan-git/PKGBUILD | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pcr/realtimeconfigquickscan-git/PKGBUILD (limited to 'pcr/realtimeconfigquickscan-git') diff --git a/pcr/realtimeconfigquickscan-git/PKGBUILD b/pcr/realtimeconfigquickscan-git/PKGBUILD new file mode 100644 index 000000000..261f0bc29 --- /dev/null +++ b/pcr/realtimeconfigquickscan-git/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer (Arch): Giancarlo Bianchi +# Maintainer: André Silva + +pkgname=realtimeconfigquickscan-git +pkgver=r16.c362fbb +pkgrel=1 +pkgdesc="Inspect a GNU/Linux system configuration and make suggestions for improving realtime performance" +arch=('any') +url="https://github.com/raboof/realtimeconfigquickscan" +license=('GPL') +depends=('jack' 'perl' 'perl-tk') +makedepends=('git') +conflicts=('realtimeconfigquickscan' 'realtimeconfigquickscan-hg') +source=(git+https://github.com/raboof/realtimeconfigquickscan.git) +md5sums=('SKIP') + +pkgver() { + cd realtimeconfigquickscan + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd realtimeconfigquickscan + + install -dm 0755 "$pkgdir/usr/share/$pkgname" + install -dm 0755 "$pkgdir/usr/bin/" + + # Data files + for i in *; do + install -m 0644 "$i" "$pkgdir/usr/share/$pkgname/$i" + done + + # Bin1 + cat << EOF > "$pkgdir/usr/bin/realTimeConfigQuickScan" +#!/bin/bash +set -e +cd /usr/share/$pkgname +exec perl realTimeConfigQuickScan.pl +EOF + chmod 755 "$pkgdir/usr/bin/realTimeConfigQuickScan" + + # Bin2 + cat << EOF > "$pkgdir/usr/bin/QuickScan" +#!/bin/bash +set -e +cd /usr/share/$pkgname +exec perl QuickScan.pl +EOF + chmod 755 "$pkgdir/usr/bin/QuickScan" + +} -- cgit v1.2.3