summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a63bb94f0097e1886dee9f6ff5c0c22201a1516 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: aksr <aksr at t-com dot me>
pkgname=lsd2dsl-git
pkgver=0.4.1.r26.gf7bce9c
pkgrel=2
epoch=
pkgdesc="A decompiler for ABBYY Lingvo’s and Duden proprietary dictionaries."
arch=('i686' 'x86_64')
url='https://github.com/nongeneric/lsd2dsl'
url='https://rcebits.com/lsd2dsl/index.html'
license=('MIT')
groups=()
depends=('libzip' 'boost' 'qt5-base' 'libvorbis' 'libsndfile')
makedepends=('git' 'cmake>=3.14' 'gtest')
optdepends=()
checkdepends=()
provides=('lsd2dsl')
conflicts=('lsd2dsl')
replaces=()
backup=()
options=()
changelog=
install=
source=("$pkgname::git+https://github.com/nongeneric/lsd2dsl.git")
noextract=()
md5sums=('SKIP')

prepare() {
  cd "$srcdir/$pkgname"
  sed -i 's/-Werror //' CMakeLists.txt
}

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
}

build() {
  cd "$srcdir/$pkgname"
  cmake . -DCMAKE_RELEASE=TRUE
  make
}

check() {
  cd "$srcdir/$pkgname/tests"
  ./tests
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm755 console/lsd2dsl $pkgdir/usr/bin/lsd2dsl
  install -m755 gui/lsd2dsl-qtgui $pkgdir/usr/bin/lsd2dsl-qtgui
  install -Dm644 README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}