jobcore/expat/PKGBUILD

58 lines
1.9 KiB
Text
Raw Permalink 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-11-08 03:53:42 +01:00
pkgver=2.6.4
pkgrel=01
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
2024-11-08 03:53:42 +01:00
sha512sums=('99a4d3014a43b5dc5862f18daf901656ff2698f42bf9080f7b46c995fb7f69126add770e9ce52d26be44432852b9aa5ff326a75eb880d6921a3a3ae822792ab6')
b2sums=('063dcf84994afa7cd9bc4a172a328c1b13335bd2fd6456b9727e42e1821898e000a152a2991334924ded1813d4b59a5f1237d80dd37df89b46fb41124d40bc25')
sha256sums=(1a36bc40750940a98c2d424783482d497e2d1e698e8f19010b5b3e8d3c921971) # expat
## 6612e5d20d0cfda7b15f51dbf5df060bdfbd7b166ddacdf872b1af7ca8d17487 expat-2.6.4-01-x86_64.pkg.tar.lz
2022-03-20 13:19:37 +01:00