updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / piklab / PKGBUILD
blobe83df3833ed0a1bb216f8812a1890e7af44ae6b4
1 # Contributor: Tom Billiet (mouse256@ulyssis.org)
2 # Maintainer: Kevin Cox (youarefunny - ktcox@rogers.com)
3 pkgname=piklab
4 pkgver=0.15.10
5 pkgrel=3
6 pkgdesc="IDE applications based on Microchip PIC and dsPIC microcontrollers similar to MPLAB"
7 url="http://piklab.sourceforge.net/"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 depends=('cmake' 'kdelibs3' 'hicolor-icon-theme')
11 optdepends=('gputils:   Assembeler'
12             'pk2cmd:    Upload via PikKit2 programer'
13             'sdcc:      Compile C Code')
14 install=$pkgname.install
15 source=("http://downloads.sourceforge.net/project/$pkgname/newest%20release/$pkgver/$pkgname-$pkgver.tar.bz2")
16 md5sums=('21afd675a35a991f4b33562965504e0f')
18 build() {
19         cd "${srcdir}/$pkgname-$pkgver"
20         
21         export KDEDIRS=${pkgdir}/usr:/opt/kde
22         cmake -D 'CMAKE_BUILD_TYPE=Release'                       \
23               -D 'CMAKE_INSTALL_PREFIX=/usr'                      \
24               -D 'QT_INCLUDE_DIR:PATH=/opt/qt/include'            \
25               -D 'QT_MOC_EXECUTABLE:FILEPATH=/opt/qt/bin/moc'     \
26               -D 'QT_UIC_EXECUTABLE:FILEPATH=/opt/qt/bin/uic'     \
27               -D 'QT_QT_LIBRARY:FILEPATH=/opt/qt/lib/libqt-mt'    \
28               .
29         
30         make
31         make DESTDIR="${pkgdir}" install
32         
33         rm -rf ${pkgdir}/usr/share/doc/HTML/en/piklab/common
36 #build() {
37 #       cd ${srcdir}/$pkgname-$pkgver
38 #       export KDEDIRS=${pkgdir}/usr:/opt/kde
39 #       cmake . \
40 #       -DCMAKE_INSTALL_PREFIX=/usr \
41 #       -DCMAKE_BUILD_TYPE=Release
42 #       make
43 #       make install