updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / intellij_idea_ue-x_eap / PKGBUILD
blob641c25a700a8a167b822146bf190ef0774df0e5f
1 # Maintainer: Denis Dzenskevich <denis.dzenskevich at gmail.com>
2 # Contributor: scheffold <fscheffold (at) gmail.com>
3 # Contributor: Urs Wolfer <uwolfer @ fwo.ch>
5 pkgname=intellij_idea_ue-x_eap
6 pkgver=111.139
7 pkgrel=1
8 install=intellijidea.install
9 pkgdesc="Early access version of the upcoming Intellij Idea 11 Java IDE (ultimate version) with custom modifications"   
10 arch=('i686' 'x86_64')
11 url="http://confluence.jetbrains.net/display/IDEADEV/IDEA+11+EAP"
12 backup=("usr/share/${pkgname}/bin/idea.vmoptions" "usr/share/${pkgname}/bin/idea.properties")
13 license=('Commercial')
14 depends=('java-environment')
15 makedepends=('clang')
17 source=(
18         "http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=native/fsNotifier/linux/fsnotifier.h" \
19         "http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=native/fsNotifier/linux/inotify.c" \
20         "http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=native/fsNotifier/linux/main.c" \
21         "http://git.jetbrains.org/?p=idea/community.git;a=blob_plain;f=native/fsNotifier/linux/util.c" \
22     idea.vmoptions        intellijidea.sh intellijidea.desktop intellijidea.install \
23     "http://download.jetbrains.com/idea/ideaIU-${pkgver}.tar.gz")
25 md5sums=('52c3a171fdb27820f11b6aab5d4acd76'
26          'd4b596b71a2082244a6564c3edbb6895'
27          'fa5df53a289101bb60eee80446417e60'
28          '56d44ba2b232bf0263ebd2e4dd362ae0'
29          'c51777b27eed5cca4d0406b3cf060406'
30          '4751051e18f86959fd8c7d6f7d381c07'
31          '0f08598c21d7f89c310116a99be9f963'
32          '48130e94e6b816978f90b6f05b788ffc'
33          '65b71c8b76bab93a8194570cc77c8e78')
35 if [ "$CARCH" = "i686" ]; then
36         _fsnotifier="fsnotifier"
37         _clang_flags="-m32"
38   elif [ "$CARCH" = "x86_64" ]; then
39         _fsnotifier="fsnotifier64"  
40         _clang_flags="-m64"
43 build() {
44   cd "$srcdir"
46   clang $_clang_flags -O2 -Wall -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -o $_fsnotifier main.c inotify.c util.c
48   install -d -m755 $pkgdir/usr/{bin,share}
50   cp -a "idea-IU-$pkgver" "$pkgdir/usr/share/$pkgname"
51   sed -i 's|\.IntelliJIdea10|\.IntelliJIdeaXue|' "$pkgdir/usr/share/$pkgname/bin/idea.properties"
53   cp "$srcdir"/idea.vmoptions "$pkgdir"/usr/share/$pkgname/bin
54   cp "$srcdir"/$_fsnotifier "$pkgdir"/usr/share/$pkgname/bin/fsnotifier
56   chmod +x $pkgdir/usr/share/$pkgname/bin/idea.sh
57   chmod +x "$pkgdir"/usr/share/$pkgname/bin/fsnotifier
59   if [ "$CARCH" = "i686" ]; then
60     _rmpostfix="64"
61   elif [ "$CARCH" = "x86_64" ]; then
62     _rmpostfix=""
63   fi
64   rm $pkgdir/usr/share/intellij_idea_ue-x_eap/bin/\
65 {fsnotifier$_rmpostfix,libbreakgen$_rmpostfix.so,libyjpagent$_rmpostfix.so}
67   install -D -m755 $srcdir/intellijidea.sh $pkgdir/usr/bin/$pkgname
68   install -D -m644 $srcdir/intellijidea.desktop $pkgdir/usr/share/applications/$pkgname.desktop
69   install -D -m644 $srcdir/idea-IU-$pkgver/bin/idea32.png $pkgdir/usr/share/pixmaps/$pkgname.png
70   install -D -m644 $srcdir/idea-IU-$pkgver/license/IDEA_license.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt