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

Maxime Gauduin alucryd at archlinux.org
Fri Sep 25 10:06:53 UTC 2020


    Date: Friday, September 25, 2020 @ 10:06:53
  Author: alucryd
Revision: 711996

add libinih

Added:
  libinih/
  libinih/trunk/
  libinih/trunk/PKGBUILD

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Added: libinih/trunk/PKGBUILD
===================================================================
--- libinih/trunk/PKGBUILD	                        (rev 0)
+++ libinih/trunk/PKGBUILD	2020-09-25 10:06:53 UTC (rev 711996)
@@ -0,0 +1,52 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Alberto Oporto Ames <otreblain at gmail.com>
+
+pkgname=libinih
+pkgver=51
+pkgrel=3
+pkgdesc='A simple .INI file parser written in C'
+arch=(x86_64)
+url=https://github.com/benhoyt/inih
+license=(BSD)
+depends=(
+  gcc-libs
+  glibc
+)
+makedepends=(
+  git
+  meson
+)
+provides=(
+  libinih.so
+  libINIReader.so
+)
+_tag=d7f465792c0c7686b50ed45c9a435394ae418d3e
+source=(git+https://github.com/benhoyt/inih.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+  cd inih
+
+  git describe --tags | sed 's/^r//'
+}
+
+prepare() {
+  cd inih
+
+  git cherry-pick -n 32519ea045670fbd9a057a9c48f77d7b473ce53b
+}
+
+build() {
+  arch-meson inih build \
+    -Ddefault_library=shared \
+    -Ddistro_install=true \
+    -Dwith_INIReader=true
+  meson compile -C build
+}
+
+package() {
+  DESTDIR="$pkgdir" meson install -C build
+  install -Dm 644 inih/LICENSE.txt -t "${pkgdir}"/usr/share/licenses/libinih/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list