summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d91e74f4aae4697a8cbd3f8a11d8048f7125549 (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
# Maintainer: Zachary Koesters <zkoesters@utdallas.edu>

pkgname="collada-dom"
provides=("colladadom")
pkgver=2.4.4
pkgrel=1
pkgdesc="An API that provides a C++ object representation of a COLLADA XML instance document."
url="https://github.com/rdiankov/collada-dom/tree/v2.4.4"
license=("custom")
arch=("any")
depends=("libxml2"
         "boost-libs"
         "pcre")
makedepends=("cmake"
             "boost")
source=("https://github.com/rdiankov/${pkgname}/archive/v${pkgver}.tar.gz"
        "0001-fix-return-type-thanks-to-22.patch")
sha256sums=("0dfa494827faa971310c871535b319cadbd0c2d6958ee11b303c61a55a5a437a"
            "921742c7ad1094e1f25281869860b16cbab9d1fb0cb718fb32e0775861bdb13c")

prepare() {
    cd "${pkgname}-${pkgver}"
    patch -Np1 < ../0001-fix-return-type-thanks-to-22.patch
}

build() {
    cd "${pkgname}-${pkgver}"
    cmake \
        -DCMAKE_INSTALL_PREFIX=/usr \
        "../${pkgname}-${pkgver}"
    make
}

package() {
    cd "${pkgname}-${pkgver}"
    install -Dm644 "licenses/license_e.txt" \
        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    make DESTDIR="${pkgdir}" install
}