blob: 4a1b82a7f2f4898bc56862e788cde76bb110e42b (
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
|
# Maintainer: courk <courk at courk dot fr>
pkgname=kaitai-struct-compiler
pkgver=0.7
pkgrel=1
pkgdesc="Kaitai Struct Compiler: Compiler for the Kaitai declarative binary format parsing language"
arch=(any)
url="http://kaitai.io/"
license=('GPL3')
depends=("java-runtime")
optdepends=()
source=("$pkgname-$pkgver.zip::https://bintray.com/kaitai-io/universal/download_file?file_path=$pkgver%2F$pkgname-$pkgver.zip" "01-fix_lib_dir.patch")
sha1sums=("6df04de01a22b2a5853b286c84c893681c407936"
"f195c30032c7b2b8f9e2322188b698248bc27adf")
prepare() {
cd $pkgname-$pkgver
patch -Np1 -i "${srcdir}/01-fix_lib_dir.patch"
}
package() {
cd "$srcdir/$pkgname-$pkgver/lib/"
for f in *.jar
do
install -D -m 644 "$f" "$pkgdir/usr/share/java/$pkgname/$f"
done
install -D -m 755 "$srcdir/$pkgname-$pkgver/bin/kaitai-struct-compiler" "$pkgdir/usr/bin/kaitai-struct-compiler"
}
# vim:set ts=2 sw=2 et:
|