blob: 515f5551c58fee2e827c48566c9cb26fd71ee56f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $Id: PKGBUILD 67923 2012-03-16 10:10:35Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jens Adam (byte/jra) <j_adam@web.de>
pkgname=lazarus
pkgver=0.9.30.4
pkgrel=1
pkgdesc='Delphi-like IDE for FreePascal'
url='http://www.lazarus.freepascal.org/'
license=('GPL2' 'MPL' 'custom:LGPL')
arch=('i686' 'x86_64')
depends=('fpc' 'fpc-src' 'gtk2')
#makedepends=(rpmextract)
options=('!emptydirs' '!makeflags')
source=(http://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20$pkgver/lazarus-$pkgver-src.tar.bz2)
md5sums=('ebd40cdfdfc4b66d1ced7a0d48d6da84')
build() {
cd $srcdir/${pkgname}
make FPC=/usr/bin/fpc clean bigide
}
package() {
cd $srcdir/${pkgname}
# skip the 'make install' mess completely and do everything manually
mkdir -p $pkgdir/usr/lib/lazarus $pkgdir/usr/bin $pkgdir/usr/share/man/man1 $pkgdir/usr/share/doc
rm -r debian
cp -R . $pkgdir/usr/lib/lazarus
ln -s /usr/lib/lazarus/lazarus $pkgdir/usr/bin/lazarus
ln -s /usr/lib/lazarus/startlazarus $pkgdir/usr/bin/startlazarus
ln -s /usr/lib/lazarus/lazbuild $pkgdir/usr/bin/lazbuild
cp -R install/man/man1/* $pkgdir/usr/share/man/man1/
mv $pkgdir/usr/lib/lazarus/docs $pkgdir/usr/share/doc/lazarus
# make 'desktop-file-validate' happy and fix missing .png icon
sed -e 's|\(Categories\).*|\1=IDE;Development;|' \
-e 's|\.png|\.xpm|' -i install/lazarus.desktop
install -Dm644 install/lazarus.desktop $pkgdir/usr/share/applications/lazarus.desktop
install -Dm644 images/ide_icon48x48.png $pkgdir/usr/share/pixmaps/lazarus.png
rm -r $pkgdir/usr/lib/lazarus/install
# license files: /usr/lib/lazarus/COPYING*
install -D -m644 COPYING.modifiedLGPL.txt $pkgdir/usr/share/licenses/$pkgname/COPYING.modifiedLGPL
# strip
find $pkgdir -perm /ugo+x -type f -exec strip {} \;
find $pkgdir -name \*.so -type f -exec strip {} \;
}
|