updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / easybashgui / PKGBUILD
blob66c296c60bffa9285bd4c22a7aa0e404068f7e12
1 # Maintainer: Thomas C. <Sekereg at gmx dot com>
3 _pkgname=EasyBashGUI
4 pkgname=easybashgui
5 pkgver=1.2.8
6 pkgrel=1
7 pkgdesc="Create bash GUIs without worrying about running environment"
8 arch=(any)
9 url="https://sites.google.com/site/easybashgui"
10 license=('GPL3')
11 depends=()
12 optdepends=('kdebase-kdialog: kdialog support' 
13 'zenity: zenity support'
14 'xdialog: xdialog support'
15 'dialog: dialog support')
16 install=(easybashgui.install)
17 source=(https://sites.google.com/site/easybashgui/download/${_pkgname}_${pkgver}.tar.gz)
18 sha512sums=(0b823ca06ce7951b1a0ebda2e7db3106d92bd8b36d164282f4e25964202aa807a9a66a58787e3939e5afb54dd7577d7292f6843f1713b2da1e52d4cf77f84a42)
19 build() {
20         cd "$srcdir/"
21         mv "$srcdir/${_pkgname}_${pkgver}" "$srcdir/${pkgname}_${pkgver}"
22         cd "$srcdir/${pkgname}_${pkgver}"
23         
24         sed -i 's_/usr/local/bin_/usr/share/${pkgname}_' easybashgui_1.2.8
25         sed -i 's_/usr/local/bin_/usr/bin_' easybashgui_test.sh
26         sed -i 's_/usr/local/bin_/usr/bin_' easydialog.sh
27         
28         install -D -m655 EasyBashGUI-readme ${pkgdir}/usr/share/${pkgname}/EasyBashGUI-readme
29         install -D -m655 Attenzione.xpm ${pkgdir}/usr/share/${pkgname}/icons/Attenzione.xpm
30         install -D -m655 Ok.xpm ${pkgdir}/usr/share/${pkgname}/icons/Ok.xpm
31         install -D -m755 easybashgui_${pkgver} ${pkgdir}/usr/share/${pkgname}/easybashgui_${pkgver}
32         install -D -m755 easybashgui_test.sh ${pkgdir}/usr/share/${pkgname}/easybashgui_test.sh
33         install -D -m755 easydialog.sh ${pkgdir}/usr/bin/easydialog.sh
34         
35         ln -s ${pkgdir}/usr/share/${pkgname}/easybashgui_${pkgver} ${pkgdir}/usr/bin/easybashgui