summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6acd8e5eb90fd643a06a605857a0bb93680cb711 (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
# Maintainer: sandsmark <martin.sandsmark@kde.org>

pkgname=mitie-git
_pkgname=MITIE
pkgrel=1
pkgver=r5148.15bed499
pkgdesc="MITIE: library and tools for information extraction"
arch=('i686' 'x86_64')
url="https://github.com/mit-nlp/MITIE"
license=('Boost Software License')
depends=('openblas')
source=("git+https://github.com/mit-nlp/${_pkgname}")
sha256sums=(SKIP)
provides=('mitie')
conflicts=('mitie')
replaces=('mitie')

pkgver() {
  cd ${_pkgname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_pkgname}/mitielib"
    mkdir -p build
    cd build
    cmake .. \
        -DCMAKE_INSTALL_PREFIX=/usr \

}

package() {
    cd "${srcdir}/${_pkgname}/mitielib/"

    # The install target in the CMakeLists.txt is broken
    install -d -m755 "${pkgdir}/usr/lib/"
    install -m755 build/libmitie.so "${pkgdir}/usr/lib/"

    install -d -m755 "${pkgdir}/usr/include/mitie/"
    install -m644 include/mitie/*.h "${pkgdir}/usr/include/mitie/"
}