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

Ike Devolder idevolder at gemini.archlinux.org
Mon Jan 24 20:50:36 UTC 2022


    Date: Monday, January 24, 2022 @ 20:50:36
  Author: idevolder
Revision: 1114881

upgpkg: fpc 3.2.2-3

Modified:
  fpc/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-24 20:18:23 UTC (rev 1114880)
+++ PKGBUILD	2022-01-24 20:50:36 UTC (rev 1114881)
@@ -8,7 +8,7 @@
 
 pkgname=fpc
 pkgver=3.2.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Free Pascal Compiler, Turbo Pascal 7.0 and Delphi compatible."
 arch=('x86_64')
 url="http://www.freepascal.org/"
@@ -17,11 +17,11 @@
 depends=('ncurses' 'zlib' 'expat' 'binutils' 'make')
 makedepends=(fpc)
 options=(zipman staticlibs)
-source=("https://downloads.sourceforge.net/project/freepascal/Source/$pkgver/fpcbuild-$pkgver.tar.gz")
+source=("https://downloads.sourceforge.net/project/freepascal/Source/${pkgver}/fpcbuild-${pkgver}.tar.gz")
 sha512sums=('75889bb54adc70a6e2cbd291476b9b12d61c8f943a05b7d16d2024de3215c935465ff43b1400c412e128e260c7f49a9c66e35c21f86cb866e671b5b60a282d82')
 
 build() {
-  cd "$srcdir"/fpcbuild-$pkgver
+  cd "${srcdir}"/fpcbuild-${pkgver}
   export CFLAGS="$CFLAGS -ffat-lto-objects"
   pushd fpcsrc/compiler
   fpcmake -Tall
@@ -30,25 +30,27 @@
 }
 
 package() {
-  cd "$srcdir"/fpcbuild-$pkgver
+  cd "${srcdir}"/fpcbuild-${pkgver}
 
-  export HOME="$srcdir"
+  export HOME="${srcdir}"
 
-  make -j1 PREFIX="$pkgdir"/usr install NOGDB=1
+  make -j1 PREFIX="${pkgdir}"/usr install NOGDB=1
 
-  export PATH="$pkgdir"/usr/bin:$PATH
+  export PATH="${pkgdir}"/usr/bin:$PATH
 
-  install -Dm0644 fpcsrc/rtl/COPYING.FPC "$pkgdir"/usr/share/licenses/${pkgname}/COPYING.FPC
+  install -Dm0644 fpcsrc/rtl/COPYING.FPC "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING.FPC
 
-  [ "$CARCH" = "x86_64" ] && ln -s /usr/lib/fpc/${pkgver}/ppcx64 "$pkgdir"/usr/bin/
+  [ "$CARCH" = "x86_64" ] && ln -s /usr/lib/fpc/${pkgver}/ppcx64 "${pkgdir}"/usr/bin/
 
-  mkdir -p "$pkgdir"/etc
-  "$pkgdir"/usr/lib/fpc/${pkgver}/samplecfg "$pkgdir"/usr/lib/fpc/${pkgver} "$pkgdir"/etc
+  mkdir -p "${pkgdir}"/etc
+  "${pkgdir}"/usr/lib/fpc/${pkgver}/samplecfg "${pkgdir}/usr/lib/fpc/${pkgver}" "${pkgdir}"/etc
+  "${pkgdir}"/usr/lib/fpc/${pkgver}/samplecfg "/usr/lib/fpc/${pkgver}" "${pkgdir}"/etc
+  cp "${srcdir}/.fp/fp."{cfg,ini} "${pkgdir}/usr/lib/fpc/${pkgver}/ide/text/"
 
   # use -fPIC by default
-  echo -e "#ifdef cpux86_64\n# for x86_64 use -fPIC by default\n-Cg\n#endif" >> "$pkgdir/etc/fpc.cfg"
+  echo -e "#ifdef cpux86_64\n# for x86_64 use -fPIC by default\n-Cg\n#endif" >> "${pkgdir}/etc/fpc.cfg"
 
-  mv "$pkgdir"/usr/man "$pkgdir"/usr/share/
+  mv "${pkgdir}"/usr/man "${pkgdir}"/usr/share/
 
-  find "$pkgdir"/etc/ -type f -exec sed -i "s|"$pkgdir"||g" {} \;
+  find "${pkgdir}"/etc/ -type f -exec sed -i "s|"${pkgdir}"||g" {} \;
 }



More information about the arch-commits mailing list