diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-11-02 21:09:52 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-11-02 21:11:00 -0300 |
commit | fbaa0e02ab71140eb2315277395ff43c1dc3f45f (patch) | |
tree | 570cabd218e7cc9c6f58a573681292d92da6ed83 /pcr/realtimeconfigquickscan-git | |
parent | 4db8d273c83a46dc45c1089b262456265c32266d (diff) | |
download | abslibre-fbaa0e02ab71140eb2315277395ff43c1dc3f45f.tar.gz abslibre-fbaa0e02ab71140eb2315277395ff43c1dc3f45f.tar.bz2 abslibre-fbaa0e02ab71140eb2315277395ff43c1dc3f45f.zip |
realtimeconfigquickscan-git: add new package to [pcr]
Diffstat (limited to 'pcr/realtimeconfigquickscan-git')
-rw-r--r-- | pcr/realtimeconfigquickscan-git/PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
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 <giancarlobianchi76@gmail.com> +# Maintainer: André Silva <emulatorman@parabola.nu> + +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" + +} |