2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
|
|
|
# Contributor: Alberto Oporto Ames <otreblain@gmail.com>
|
|
|
|
|
|
|
|
pkgname=libinih
|
2024-02-11 00:39:59 +01:00
|
|
|
pkgver=58
|
2022-08-14 22:18:45 +02:00
|
|
|
pkgrel=1
|
2022-03-20 13:19:37 +01:00
|
|
|
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
|
|
|
|
)
|
2024-02-11 00:39:59 +01:00
|
|
|
_tag=5cc5e2c24642513aaa5b19126aad42d0e4e0923e
|
2022-03-20 13:19:37 +01:00
|
|
|
source=(git+https://github.com/benhoyt/inih.git#tag=${_tag})
|
|
|
|
b2sums=(SKIP)
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd inih
|
|
|
|
git describe --tags | sed 's/^r//'
|
|
|
|
}
|
|
|
|
|
|
|
|
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:
|