[arch-commits] Commit in libinih (3 files)
Maxime Gauduin
alucryd at archlinux.org
Fri Sep 25 10:07:08 UTC 2020
Date: Friday, September 25, 2020 @ 10:07:08
Author: alucryd
Revision: 711997
archrelease: copy trunk to community-x86_64
Added:
libinih/repos/
libinih/repos/community-x86_64/
libinih/repos/community-x86_64/PKGBUILD
(from rev 711996, libinih/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: libinih/repos/community-x86_64/PKGBUILD (from rev 711996, libinih/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2020-09-25 10:07:08 UTC (rev 711997)
@@ -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