summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57061979f0196dc969bae069a2189d4e37529416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=kurento-module-creator
pkgver=6.13.0
pkgrel=1
pkgdesc="Helper for build of Kurento media server"
arch=(any)
url="https://github.com/Kurento/kurento-module-creator"
license=(apache)
depends=("java-runtime")
makedepends=("java-environment" "maven")
source=("git://github.com/Kurento/$pkgname.git#tag=$pkgver")
sha256sums=(SKIP)

build() {
    cd "$srcdir/$pkgname"
    mvn package
}

package() {
    rm -rf "$pkgdir"/usr
    mkdir -p "$pkgdir"/usr/{bin,"share/cmake/Modules"}
    cp "$srcdir/$pkgname"/{target/kurento-module-creator-jar-with-dependencies.jar,scripts/kurento-module-creator} "$pkgdir"/usr/bin
    cp "$srcdir/$pkgname"/target/classes/FindKurentoModuleCreator.cmake "$pkgdir/usr/share/cmake/Modules"
}