updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / buc / PKGBUILD
blobf6c19a483abaf953f004f988140eb198e63b2630
1 # Contributor: Emanuele Rossi newdna1510@yahoo.it
2 # Contributor: Odites odites@gmal.com
3 # Contributor: cruznick <cruznick@archlinux.us>
4 # Contributor: fsckd <fsckdaemon@gmail.com>
6 pkgname=buc
7 pkgver=0.5.2
8 pkgrel=3
9 pkgdesc="BUC is the program which transforms common bash script in GUI applications written in QT"
10 arch=('i686' 'x86_64')
11 url="http://buc.billeragroup.net"
12 license=('GPL')
13 groups=('devel')
14 install=buc.install
15 depends=('libpng' 'qt')
16 source=("http://buc.intilinux.com/download/${pkgname}-${pkgver}_src_full.tar.gz"
17         'gcc-fixes.patch'
18         'path-fixes.patch')
19 sha256sums=('9e8951558f838dd655bfb534eabf444274870a6cf7c549bd56e3e11f2ae285d1'  #src
20             'a4d384345f659652d40fed9047c262ec03229fd20ec434ae0948c5a1500b1ed7'  # gcc-fixes.patch
21             '384efde9a66a7c634830af69a9dc771d03fc0fd290d5b377d437f7091bc5ac5d') # path-fixes.patch
23 build() {
24    cd "${srcdir}/zip/"
26    # removing unnecesary stuff
27    rm -v bucd/usr/local/buc/libQtCore.so.4
28    rm -v bucd/usr/local/buc/libQtGui.so.4
29    rm -v bucd/usr/local/buc/buc
31    # patch to facilitate compilation
32    patch -Np1 -i  "${srcdir}/gcc-fixes.patch"
34    # patch to fix paths (usr/local to usr/share)
35    patch -Np1 -i  "${srcdir}/path-fixes.patch"
37    qmake 
38    make
40    # create dirs and move things to right places
41    mkdir -p "${pkgdir}/usr/bin"
42    mkdir -p "${pkgdir}/usr/share/buc"
44    cp -Rv bucd/usr/share/* "${pkgdir}/usr/share"
45    cp -Rv bucd/usr/local/buc/ "${pkgdir}/usr/share"
46    cp -Rv bucd/usr/local/bin/ "${pkgdir}/usr/"
47    cp -Rv buc "${pkgdir}/usr/share/buc/"