2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
2024-08-22 17:58:58 +02:00
|
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
2022-03-20 13:19:37 +01:00
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=libinih
|
2024-02-11 00:39:59 +01:00
|
|
|
pkgver=58
|
2022-08-14 22:18:45 +02:00
|
|
|
pkgrel=01
|
2022-03-20 13:19:37 +01:00
|
|
|
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)
|
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})
|
|
|
|
|
2022-04-27 12:23:36 +02:00
|
|
|
#prepare() {
|
|
|
|
# cd inih
|
|
|
|
# git cherry-pick -n 32519ea045670fbd9a057a9c48f77d7b473ce53b
|
|
|
|
#}
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
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/
|
|
|
|
}
|
|
|
|
|
2023-07-19 00:38:47 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
license=(BSD)
|
|
|
|
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
|
2024-02-11 00:39:59 +01:00
|
|
|
## b520c7b6592d4e9911838e324d89f22d81f71dd605b5f909ba3efe559a99ee10 libinih-58-01-x86_64.pkg.tar.lz
|
2023-07-19 00:38:47 +02:00
|
|
|
|