blob: 09f1f58dac331e2b04a179c04fbd9eece0064f12 (
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
44
45
46
47
48
49
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=xmlstarlet-git
pkgver=r707.ga722816
pkgrel=2
pkgdesc="Tools to transform, query, validate and edit XML file"
arch=('i686' 'x86_64')
url="https://xmlstar.sourceforge.net/"
license=('MIT')
depends=('glibc' 'libxml2' 'libxslt')
makedepends=('git' 'fop' 'ghostscript')
provides=("xmlstarlet=$pkgver")
conflicts=('xmlstarlet')
source=("git+https://git.code.sf.net/p/xmlstar/code")
sha256sums=('SKIP')
pkgver() {
cd "code"
_rev=$(git rev-list --count --all)
_hash=$(git rev-parse --short HEAD)
printf "r%s.g%s" "$_rev" "$_hash"
}
build() {
cd "code"
autoreconf -fi
LIBXSLT_PREFIX=/usr LIBXML_PREFIX=/usr \
./configure \
--prefix="/usr" \
--enable-build-docs
make
}
check() {
cd "code"
make check
}
package() {
cd "code"
make DESTDIR="$pkgdir" install
ln -s "xml" "$pkgdir/usr/bin/xmlstarlet"
install -Dm644 "Copyright" -t "$pkgdir/usr/share/licenses/xmlstarlet"
}
|