joborun
a452272ac4
upg pcre2 shadow sqlit xz mkinitcpio iproute2 gnupg expat efibootmngr audit archilinux-keyring
51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
#!/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=expat
|
|
pkgver=2.6.2
|
|
pkgrel=01
|
|
pkgdesc='An XML parser library'
|
|
url="https://libexpat.github.io/"
|
|
depends=(glibc filesystem)
|
|
makedepends=(cmake )
|
|
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})
|
|
|
|
build() {
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-W no-dev \
|
|
-B build \
|
|
-S $pkgname-$pkgver
|
|
make VERBOSE=1 -C build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build --output-on-failure
|
|
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
install -vDm 644 $pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
|
|
install -vDm 644 $pkgname-$pkgver/{AUTHORS,Changes,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(MIT)
|
|
|
|
validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
|
|
|
|
sha256sums=(9c7c1b5dcbc3c237c500a8fb1493e14d9582146dd9b42aa8d3ffb856a3b927e0 # expat-2.6.2.tar.bz2
|
|
ebedb658c5663588f34729634f0729932d73c10ae6d758149cec2eef993d6dfb) # expat-2.6.2.tar.bz2.asc
|
|
|
|
## 484e832ce365226b014b9920bf7b6e443e51ca6161cbd87ac77a57c130ecc486 expat-2.6.2-01-x86_64.pkg.tar.lz
|
|
|