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

Jan Steffens heftig at gemini.archlinux.org
Sun Dec 5 15:42:44 UTC 2021


    Date: Sunday, December 5, 2021 @ 15:42:44
  Author: heftig
Revision: 430698

no pushd

Modified:
  freetype2/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-05 15:02:03 UTC (rev 430697)
+++ PKGBUILD	2021-12-05 15:42:44 UTC (rev 430698)
@@ -35,14 +35,13 @@
 validpgpkeys=(58E0C111E39F5408C5D3EC76C1A60EACE707FDA5) # Werner Lemberg <wl at gnu.org>
 
 prepare() {
-  pushd freetype-$pkgver
+  ln -sr freetype-$pkgver ft2demos-$pkgver/subprojects/freetype2
+
+  cd freetype-$pkgver
   patch -Np1 -i ../0001-Enable-table-validation-modules.patch
   patch -Np1 -i ../0002-Enable-subpixel-rendering.patch
   patch -Np1 -i ../0003-Enable-infinality-subpixel-hinting.patch
   patch -Np1 -i ../0004-Enable-long-PCF-family-names.patch
-
-  ln -sr . ../ft2demos-$pkgver/subprojects/freetype2
-  popd
 }
 
 build() {
@@ -75,9 +74,8 @@
   install -Dt "$pkgdir/usr/share/aclocal" -m644 \
     freetype-$pkgver/builds/unix/freetype2.m4
 
-  cd "$pkgdir"
-  _pick demos usr/bin
-  _pick demos usr/share/man/man1
+  _pick demos "$pkgdir"/usr/bin
+  _pick demos "$pkgdir"/usr/share/man/man1
 }
 
 package_freetype2-demos() {



More information about the arch-commits mailing list