updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / etoile / PKGBUILD
blob9f3a331a8a8e70226188c27cbd48a5c060e494f5
1 # Contributor: Kristaps Esterlins <esterlinsh@gmail.com>
3 pkgname=etoile
4 pkgver=0.4.1
5 pkgrel=6
6 pkgdesc="A lightweight Desktop Environment based on GNUstep frameworks."
7 arch=('i686' 'x86_64')
8 url="http://etoileos.com/"
9 license=('LGPL' 'APACHE' 'BSD' 'GPL2' 'custom:CoreObject' 'custom:EtoileFoundation' 'custom:EtoileSerialize' 'custom:EtoileUI' 'custom:IconKit' 'custom:OgreKit' 'custom:ScriptKit' 'custom:XMPPKit' 'custom:XWindowServerKit' 'custom:imlib2' 'custom:Smalltalk' 'custom:LanguageKit' 'custom:Compiler' 'custom:AZBackground' 'custom:Corner' 'custom:DictionaryReader' 'custom:FontManager' 'custom:Jabber' 'custom:Typewriter' 'custom:CoreObjectExample' 'custom:LuceneKitExample')
10 depends=('gnustep-make>=2.00' 'gnustep-base>=1.15.3' 'gnustep-gui>=0.13.2' 'gnustep-back>=0.13.2' 'postgresql>=8.3' 'oniguruma>=5.0' 'ffmpeg' 'poppler' 'llvm-etoile>=2.4' 'lemon' 'taglib')
11 makedepends=('gcc>=4.1' 'libxss' 'gcc-objc')
12 optdepends=('oss: Replacement of alsa-oss for MediaKit')
13 conflicts=('etoile-svn')
14 replaces=('etoile-svn')
15 options=('!makeflags')
16 source=(http://download.gna.org/etoile/$pkgname-$pkgver.tar.bz2 'MKMediaFile.h.patch' 'etoile.make.patch' 'LanguageKit_Codegen.patch' 'CodegenLexicalScope.cpp.patch' 'LLVMCodeGen.cpp.patch' 'EtoileFoundation.patch')
17 md5sums=('14d587f439ae6d2ba127ceb4e07a44d7' '2d42f23fd08523231fd18ec134e0cb93' '61a37e5d770c042fa29f793b7f85435f' 'e6a7318f57795627c7ecf8c0d107c40c' 'f40d5cd96bd90e321062bb4e1c6a3c9d' 'cc9799dc2d85166fc5d9e8c8b596c42c' '931057ab44e67cffc8def3f7d4878244')
19 _pkgname=Etoile
21 build() {
22   cd $srcdir/$_pkgname-$pkgver
24         # Change the location of ffmpeg headers path    
25         patch -Np1 < $srcdir/MKMediaFile.h.patch || return 1
27   # Don't treat warnings as errors
28         patch -Np0 < $srcdir/etoile.make.patch || return 1
29         
30         # Disable -Wno-Werror notifications
31         patch -Np0 < $srcdir/LanguageKit_Codegen.patch || return 1
33         # Trivial fix for GCC to find stdio.h
34         patch -Np0 < $srcdir/CodegenLexicalScope.cpp.patch || return 1
35   patch -Np0 < $srcdir/LLVMCodeGen.cpp.patch || return 1
37         # Fix for x86-64 systems
38         patch -Np0 < $srcdir/EtoileFoundation.patch || return 1
40         source /etc/profile.d/GNUstep.sh
42   make || return 1 
43         
44         # Licenses
46         install -d 755 $pkgdir/usr/share/licenses/$pkgname
47         
48   install -m 644 Frameworks/CoreObject/COPYING $pkgdir/usr/share/licenses/$pkgname/CoreObject.license
49         install -m 644 Frameworks/EtoileFoundation/COPYING $pkgdir/usr/share/licenses/$pkgname/EtoileFoundation.license
50         install -m 644 Frameworks/EtoileSerialize/COPYING $pkgdir/usr/share/licenses/$pkgname/EtoileSerialize.license
51         install -m 644 Frameworks/EtoileUI/COPYING $pkgdir/usr/share/licenses/$pkgname/EtoileUI.license
52         install -m 644 Frameworks/IconKit/COPYING $pkgdir/usr/share/licenses/$pkgname/IconKit.license
53   install -m 644 Frameworks/OgreKit/COPYING $pkgdir/usr/share/licenses/$pkgname/OgreKit.license
54         install -m 644 Frameworks/ScriptKit/COPYING $pkgdir/usr/share/licenses/$pkgname/ScriptKit.license
55         install -m 644 Frameworks/XMPPKit/COPYING $pkgdir/usr/share/licenses/$pkgname/XMPPKit.license   
56         install -m 644 Frameworks/XWindowServerKit/COPYING $pkgdir/usr/share/licenses/$pkgname/XWindowServerKit.license
57   install -m 644 Frameworks/XWindowServerKit/COPYING.imlib2 $pkgdir/usr/share/licenses/$pkgname/imlib2.license
58         
59         install -m 644 Languages/Smalltalk/COPYING $pkgdir/usr/share/licenses/$pkgname/Smalltalk.license
60         install -m 644 Languages/LanguageKit/COPYING $pkgdir/usr/share/licenses/$pkgname/LanguageKit.license
61         install -m 644 Languages/Compiler/COPYING $pkgdir/usr/share/licenses/$pkgname/Compiler.license
62         
63         install -m 644 Services/Private/AZBackground/COPYING $pkgdir/usr/share/licenses/$pkgname/AZBackground.license
64         install -m 644 Services/Private/Corner/LICENSE $pkgdir/usr/share/licenses/$pkgname/Corner.license
65         
66         install -m 644 Services/User/DictionaryReader/COPYING $pkgdir/usr/share/licenses/$pkgname/DictionaryReader.license
67         install -m 644 Services/User/FontManager/COPYING $pkgdir/usr/share/licenses/$pkgname/FontManager.license
68         install -m 644 Services/User/Jabber/LICENSE $pkgdir/usr/share/licenses/$pkgname/Jabber.license
69         install -m 644 Services/User/Typewriter/COPYING $pkgdir/usr/share/licenses/$pkgname/Typewriter.license  
71         install -m 644 Developer/Examples/CoreObjectExample/COPYING $pkgdir/usr/share/licenses/$pkgname/CoreObjectExample.license
72         install -m 644 Developer/Examples/LuceneKitExample/COPYING $pkgdir/usr/share/licenses/$pkgname/LuceneKitExample.licenese
74   make DESTDIR=$pkgdir install || return 1