[arch-commits] Commit in lazarus/trunk (PKGBUILD)

Ike Devolder idevolder at archlinux.org
Sun Dec 24 09:07:22 UTC 2017


    Date: Sunday, December 24, 2017 @ 09:07:21
  Author: idevolder
Revision: 275720

upgpkg: lazarus 1.8.0-1

Modified:
  lazarus/trunk/PKGBUILD

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 50 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-24 09:06:52 UTC (rev 275719)
+++ PKGBUILD	2017-12-24 09:07:21 UTC (rev 275720)
@@ -1,20 +1,19 @@
 # $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Contributor: Jens Adam <jra at byte.cx>
-# Contributor: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
 
 pkgbase=lazarus
-pkgname=('lazarus' 'lazarus-gtk2' 'lazarus-qt')
-pkgver=1.6.4
-_pkgsubver=0
-pkgrel=2
+pkgname=('lazarus' 'lazarus-gtk2' 'lazarus-qt4' 'lazarus-qt5')
+pkgver=1.8.0
+pkgrel=1
 url='http://www.lazarus.freepascal.org/'
 license=('GPL2' 'MPL' 'custom:modifiedLGPL')
 arch=('x86_64')
-makedepends=('fpc' 'fpc-src' 'gtk2' 'qt4pas' 'rsync')
+makedepends=('fpc' 'fpc-src' 'gtk2' 'qt4pas' 'qt5pas' 'rsync')
 options=('!emptydirs' '!makeflags')
-source=("http://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20${pkgver}/lazarus-$pkgver-${_pkgsubver}.tar.gz")
-sha256sums=('336654c5ad32244e64a56511108965b6b8eb25fe5882f61b2c15a24d8435a5e2')
+source=("https://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20${pkgver}/lazarus-$pkgver.tar.gz")
+sha512sums=('dd5e02e9c0a057cf9a6b2c15605969cf4cb743aa78fc81bfdc7c566434127893cf32bab5bd1729f79b51c611bf9ae015bea8d774e0544ead42a064f1224ffd7b')
 
 build() {
   cd "$srcdir"/${pkgbase}
@@ -25,11 +24,17 @@
   mv lazarus lazarus-gtk2
   mv startlazarus startlazarus-gtk2
 
-  # build qt ide
+  # build qt4 ide
   make FPC=/usr/bin/fpc LCL_PLATFORM=qt bigide
   # move qt binaries
-  mv lazarus lazarus-qt
-  mv startlazarus startlazarus-qt
+  mv lazarus lazarus-qt4
+  mv startlazarus startlazarus-qt4
+
+  # build qt5 ide
+  make FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide
+  # move qt binaries
+  mv lazarus lazarus-qt5
+  mv startlazarus startlazarus-qt5
 }
 
 package_lazarus() {
@@ -38,7 +43,8 @@
   optdepends=(
     'perl: to run some scirpts in the tools directory'
     'gtk2: to compile gtk2 apps'
-    'qt4pas: to compile qt apps and use help viewer'
+    'qt4pas: to compile qt4 apps and use help viewer'
+    'qt5pas: to compile qt5 apps and use help viewer'
   )
 
   cd "$srcdir"/${pkgbase}
@@ -80,7 +86,7 @@
 package_lazarus-gtk2() {
   pkgdesc='Delphi-like IDE for FreePascal gtk2 version'
   depends=('lazarus' 'desktop-file-utils' 'gtk2')
-  conflicts=('lazarus-qt')
+  conflicts=('lazarus-qt4' 'lazarus-qt5')
 
   cd "$srcdir"/${pkgbase}
 
@@ -101,16 +107,17 @@
   install -D -m644 COPYING.modifiedLGPL.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.modifiedLGPL
 }
 
-package_lazarus-qt() {
-  pkgdesc='Delphi-like IDE for FreePascal qt version'
+package_lazarus-qt4() {
+  pkgdesc='Delphi-like IDE for FreePascal qt4 version'
   depends=('lazarus' 'qt4pas')
-  conflicts=('lazarus-gtk2')
+  conflicts=('lazarus-gtk2' 'lazarus-qt5')
+  replaces=('lazarus-qt')
 
   cd "$srcdir"/${pkgbase}
 
   # install qt binaries
-  install -Dm755 lazarus-qt "$pkgdir"/usr/lib/lazarus/lazarus
-  install -Dm755 startlazarus-qt "$pkgdir"/usr/lib/lazarus/startlazarus
+  install -Dm755 lazarus-qt4 "$pkgdir"/usr/lib/lazarus/lazarus
+  install -Dm755 startlazarus-qt4 "$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
@@ -125,4 +132,28 @@
   install -D -m644 COPYING.modifiedLGPL.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.modifiedLGPL
 }
 
+package_lazarus-qt5() {
+  pkgdesc='Delphi-like IDE for FreePascal qt5 version'
+  depends=('lazarus' 'qt5pas')
+  conflicts=('lazarus-gtk2' 'lazarus-qt4')
+
+  cd "$srcdir"/${pkgbase}
+
+  # install qt binaries
+  install -Dm755 lazarus-qt5 "$pkgdir"/usr/lib/lazarus/lazarus
+  install -Dm755 startlazarus-qt5 "$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
+  install -Dm644 images/ide_icon48x48.png "$pkgdir"/usr/share/pixmaps/lazarus.png
+
+  # license files: /usr/lib/lazarus/COPYING*
+  install -D -m644 COPYING.modifiedLGPL.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.modifiedLGPL
+}
+
 # vim:set ts=2 sts=2 sw=2 et:



More information about the arch-commits mailing list