summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 631d0e0dcd4a3d2c5a4637b78e0844f38358db69 (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
# Maintainer: Brendan Abolivier <brendan@cozycloud.cc>
pkgname=xqilla
pkgver=2.3.3
pkgrel=1
pkgdesc="An XQuery and XPath 2.0 library, written in C++ and built on top of Xerces-C."
arch=("x86_64")
url="http://xqilla.sourceforge.net/"
license=("GPL3")
depends=("xerces-c" "icu")
source=("https://downloads.sourceforge.net/project/xqilla/XQilla-${pkgver}.tar.gz"
        "xerces-containing-node.patch")
sha256sums=('8f76b9b4f966f315acc2a8e104e426d8a76ba4ea3441b0ecfdd1e39195674fd6'
            '36ffb2dff579e5610ca3be2a962942433127b24a78ca454647059d6d54b8e014')

prepare() {
  cd "XQilla-${pkgver}"

  # Apply patch from Homebrew to make XQilla compatible with Xerces-C 3.2.
  # See: https://sourceforge.net/p/xqilla/bugs/48/
  patch -p1 < "${srcdir}/xerces-containing-node.patch"
}

build() {
  cd "XQilla-${pkgver}"
  ./configure --prefix=/usr --with-xerces=/usr
  make
}

package() {
  cd "XQilla-${pkgver}"
  make DESTDIR="${pkgdir}/" install
}