jobcore/expat/PKGBUILD

56 lines
1.9 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>
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=expat
2024-09-04 21:29:18 +02:00
pkgver=2.6.3
pkgrel=02
2022-03-20 13:19:37 +01:00
pkgdesc='An XML parser library'
url="https://libexpat.github.io/"
2024-09-04 21:29:18 +02:00
_url="https://github.com/libexpat/libexpat"
2022-03-20 13:19:37 +01:00
depends=(glibc filesystem)
2024-09-04 21:29:18 +02:00
makedepends=(cmake git)
2022-03-20 13:19:37 +01:00
provides=(libexpat.so)
# options=(debug) # uncomment if you want developers' debug pkg created
2024-09-04 21:29:18 +02:00
#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//./_})
2022-03-20 13:19:37 +01:00
build() {
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-W no-dev \
-B build \
2024-09-04 21:29:18 +02:00
-S $pkgname/$pkgname
2022-03-20 13:19:37 +01:00
make VERBOSE=1 -C build
}
check() {
ctest --test-dir build --output-on-failure
2022-03-20 13:19:37 +01:00
}
package() {
DESTDIR="$pkgdir" cmake --install build
2024-09-04 21:29:18 +02:00
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/"
2022-03-20 13:19:37 +01:00
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
license=(MIT)
validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
2024-09-04 21:29:18 +02:00
sha512sums=('d4845acf87f1b14a5bedeac8effbc4d292f7a1fafa28ea3159f74ccaeef19af3ad48a0398367c2a6e45b9a151c3c3f59b462922d5a615846ab11b9a144b09e91')
b2sums=('57bb71f8ad2211127281d22ffebdb1cb1b023081eb83eca2843c9e6b99d3ad4570cc885889a9d80c90c4a8e9c8d5331c04b4f61e711bb0546cb4234636255106')
sha256sums=(a4039c739df7bfdc1f95b3793d0dcd9f40f054a95f52cd4ec58a374d4c6f488a) # expat
2022-03-20 13:19:37 +01:00
2024-09-04 21:29:18 +02:00
## aef154161c8b92ee8ab438ed6d04acab2b424629b7e96087b801195d6fbe3dfe expat-2.6.3-02-x86_64.pkg.tar.lz