#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=libinih pkgver=58 pkgrel=01 pkgdesc='A simple .INI file parser written in C' url=https://github.com/benhoyt/inih depends=( gcc-libs glibc ) makedepends=( git meson ) provides=(libinih.so libINIReader.so) _tag=5cc5e2c24642513aaa5b19126aad42d0e4e0923e source=(git+https://github.com/benhoyt/inih.git#tag=${_tag}) #prepare() { # cd inih # git cherry-pick -n 32519ea045670fbd9a057a9c48f77d7b473ce53b #} 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/ } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=(BSD) sha256sums=(SKIP) ## b520c7b6592d4e9911838e324d89f22d81f71dd605b5f909ba3efe559a99ee10 libinih-58-01-x86_64.pkg.tar.lz