#!/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=expat pkgver=2.6.3 pkgrel=02 pkgdesc='An XML parser library' url="https://libexpat.github.io/" _url="https://github.com/libexpat/libexpat" depends=(glibc filesystem) makedepends=(cmake git) provides=(libexpat.so) # options=(debug) # uncomment if you want developers' debug pkg created #source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/$pkgname-$pkgver.tar.bz2{,.asc}) source=($pkgname::git+$_url?signed=R_${pkgver//./_}) source=($pkgname::git+$_url?signed#tag=R_${pkgver//./_}) build() { cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \ -W no-dev \ -B build \ -S $pkgname/$pkgname make VERBOSE=1 -C build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build install -vDm 644 $pkgname/$pkgname/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/" install -vDm 644 $pkgname/$pkgname/{AUTHORS,Changes,README.md} -t "$pkgdir/usr/share/doc/$pkgname/" } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=(MIT) validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping sha512sums=('d4845acf87f1b14a5bedeac8effbc4d292f7a1fafa28ea3159f74ccaeef19af3ad48a0398367c2a6e45b9a151c3c3f59b462922d5a615846ab11b9a144b09e91') b2sums=('57bb71f8ad2211127281d22ffebdb1cb1b023081eb83eca2843c9e6b99d3ad4570cc885889a9d80c90c4a8e9c8d5331c04b4f61e711bb0546cb4234636255106') sha256sums=(a4039c739df7bfdc1f95b3793d0dcd9f40f054a95f52cd4ec58a374d4c6f488a) # expat ## aef154161c8b92ee8ab438ed6d04acab2b424629b7e96087b801195d6fbe3dfe expat-2.6.3-02-x86_64.pkg.tar.lz