blob: f860d13a937031722fb4bad8b4995d5668104a12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Lev Levitsky <levlev at mail.ru>
# Contributor: Fredrick R. Brennan <copypaste@kittens.ph>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
_pkgname='xidel'
pkgname="${_pkgname}-bin"
pkgver=0.9.9.20230617.8842.e14a96920e01
pkgrel=1
pkgdesc='Command line tool to process HTML/XML/JSON locally or from online sources'
arch=('x86_64')
url='https://www.videlibri.de/xidel.html'
license=('GPL3')
optdepends=('openssl: for making https connections')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::https://sourceforge.net/projects/videlibri/files/Xidel/Xidel%20development/xidel-${pkgver}.linux64.tar.gz/download"
"LICENSE::https://sourceforge.net/p/videlibri/code/ci/tip/tree/programs/internet/xidel/COPYING?format=raw"
test-data.xml
test-result.txt)
b2sums=('c1eff1ba3e2789d1c59b0273cae88e2e7527c1a0dc508deadbfc83c9cb0a617006afe5dafd27fb179736f0cf93b49130b78f3430bbc3b4908e280c900e606bcc'
'ab7e38fc42fb6686add7393ecc3c7ec622cc0d72d0304ded3e56c2f96dc8433c584520896a30c037affa44461ecccfaf3ffa4a97a7e050e8ed0ec4c592caa45c'
'39e648523811611682aef0f950e9bb9faadc60472346b450d23afdaa75032202be1d45d066387c8b57203e4f9e62bf4d300f6397943e233ffb92460ed82a4560'
'deb94456e0458387884dca3b83a160770302c70d2f3bdf4ec8d230e0dcbcafdbfe6e0c8be92f08120a172e503c0cf44d9c64ba388c79062bb2623b3070b9b5ba')
check() {
cd "$srcdir"
./xidel -e '/designspace//instances//instance/@name' test-data.xml > result.txt || \
exit 1
read -r actual expected <<< $(sha256sum test-result.txt result.txt | awk -v 'ORS= ' '{print $1;}')
echo "Testing $actual == $expected…"
[ $actual = $expected ]
}
package() {
cd "$srcdir"
./install.sh "$pkgdir"
mkdir -p "$pkgdir/usr/share/doc/xidel" "$pkgdir/usr/share/licenses/xidel"
cp -v changelog "$pkgdir/usr/share/doc/xidel/"
cp -v readme.txt "$pkgdir/usr/share/doc/xidel/"
cp -v LICENSE "$pkgdir/usr/share/licenses/xidel/"
}
# vim: ts=2 sw=2 et:
|