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

Antonio Rojas arojas at gemini.archlinux.org
Tue Sep 28 15:09:35 UTC 2021


    Date: Tuesday, September 28, 2021 @ 15:09:35
  Author: arojas
Revision: 424799

Build with meson

Modified:
  libraqm/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++--------------------
 1 file changed, 14 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-28 14:44:48 UTC (rev 424798)
+++ PKGBUILD	2021-09-28 15:09:35 UTC (rev 424799)
@@ -3,7 +3,7 @@
 
 pkgname=libraqm
 pkgver=0.7.2
-pkgrel=1
+pkgrel=2
 pkgdesc='A library that encapsulates the logic for complex text layout'
 arch=(x86_64)
 url='https://github.com/HOST-Oman/libraqm/'
@@ -10,30 +10,24 @@
 license=(MIT)
 depends=(freetype2 fribidi)
 makedepends=(meson gtk-doc)
-source=(https://github.com/HOST-Oman/libraqm/releases/download/v$pkgver/raqm-$pkgver.tar.xz)
-sha256sums=('92e765f180033ef3750832eb6fee4e07de3f99bd3d1eae7cf7e4e390ed2ae8eb')
+source=(https://github.com/HOST-Oman/libraqm/releases/download/v$pkgver/raqm-$pkgver.tar.xz
+        https://github.com/HOST-Oman/libraqm/commit/819a3e9c.patch)
+sha256sums=('92e765f180033ef3750832eb6fee4e07de3f99bd3d1eae7cf7e4e390ed2ae8eb'
+            '320a26e63954e760c526b7bb5e2f9526cb76cdd7be2d3ad3e3883b32634e3c99')
 
+prepare() {
+  patch -d raqm-$pkgver -p1 < 819a3e9c.patch # Fix meson library version
+}
+
 build() {
-#  meson build raqm-$pkgver \
-#    --prefix=/usr \
-#    -D docs=true
-#  meson compile -C build
-  cd raqm-$pkgver
-  ./autogen.sh
-  ./configure \
+  meson build raqm-$pkgver \
     --prefix=/usr \
-    --enable-static=no \
-    --enable-shared=yes \
-    --enable-fast-install=yes \
-    --enable-gtk-doc=yes \
-    --enable-gtk-doc-html=yes \
-    --enable-gtk-doc-pdf=no
+    -D docs=true
+  meson compile -C build
 }
 
 package() {
-#  meson install -C build --destdir "$pkgdir"
-  cd raqm-$pkgver
-  make DESTDIR="$pkgdir" install
+  meson install -C build --destdir "$pkgdir"
 
-  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -D -m644 raqm-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list