jobcore/libinih/PKGBUILD

50 lines
1.2 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libinih
2022-04-27 12:23:36 +02:00
pkgver=55
2022-03-20 13:19:37 +01:00
pkgrel=02
pkgdesc='A simple .INI file parser written in C'
arch=(x86_64)
url=https://github.com/benhoyt/inih
depends=( gcc-libs glibc )
makedepends=( git meson )
provides=(libinih.so libINIReader.so)
2022-04-27 12:23:36 +02:00
#_tag=cb55f57d87ae840bd0f65dbe6bd22fa021a873a7
_tag=f7f69c6cff2681d84bae371130b4a018cb2171e6
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/
}
#---- license gpg-key sha256sums ----
license=(BSD)
sha256sums=(SKIP)