desktop/lazarus/PKGBUILD

59 lines
2.4 KiB
Bash
Raw Normal View History

2010-09-27 22:33:31 +08:00
pkgname=lazarus
2016-11-17 08:24:08 +08:00
pkgver=1.6.2
pkgrel=1
2013-03-29 07:10:06 +08:00
_pkgsubver=0
pkgdesc='Delphi-like IDE for FreePascal'
url='http://www.lazarus.freepascal.org/'
2014-04-09 06:54:13 +08:00
license=('GPL2' 'MPL' 'custom:modifiedLGPL')
2013-12-12 19:18:00 +08:00
arch=('x86_64')
2016-02-24 22:23:58 +08:00
depends=('fpc>=3.0.0' 'fpc-src>=3.0.0' 'qtwebkit' 'libxslt' 'fpc-qtbindings')
options=('!emptydirs' '!makeflags')
categories=('programming')
2014-04-09 06:54:13 +08:00
install='lazarus.install'
2016-11-17 08:24:08 +08:00
source=(http://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20${pkgver}/lazarus-${pkgver}-${_pkgsubver}.tar.gz)
sha512sums=('9fb428ac5b38c0c37f909aaf06a43343f3231e9209318faf565cc08ac498c0dfb136a2f6266d437f93b5cf81e6281d747a234fef399fc6d2cb044b13397562d9')
build() {
cd $srcdir/${pkgname}
make FPC=/usr/bin/fpc LCL_PLATFORM=qt 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
rsync -a \
--exclude="CVS" --exclude=".cvsignore" \
--exclude="*.ppw" --exclude="*.ppl" \
--exclude="*.ow" --exclude="*.a"\
--exclude="*.rst" --exclude=".#*" \
--exclude="*.~*" --exclude="*.bak" \
--exclude="*.orig" --exclude="*.rej" \
--exclude=".xvpics" \
--exclude="killme*" --exclude=".gdb_hist*" \
--exclude="debian" --exclude="COPYING*" \
--exclude="*.app" --exclude="tools/install" \
. "$pkgdir"/usr/lib/lazarus
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
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
# install qt binaries
install -Dm755 lazarus $pkgdir/usr/lib/lazarus/lazarus
install -Dm755 startlazarus $pkgdir/usr/lib/lazarus/startlazarus
install -dm755 $pkgdir/usr/bin
ln -s /usr/lib/lazarus/lazarus $pkgdir/usr/bin/lazarus
ln -s /usr/lib/lazarus/startlazarus $pkgdir/usr/bin/startlazarus
# 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
2015-04-27 23:47:51 +08:00
install -Dm644 images/icons/${pkgname}256x256.png $pkgdir/usr/share/pixmaps/lazarus.png
}