blob: 6af8ffaa805ebc11f168b8857c0210b61f6d4111 (
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
|
# Maintainer: Tobias Martin <tm-x at gmx dot net>
_pkgname=openboardview
__pkgname=OpenBoardView
pkgname=${_pkgname}-git
pkgver=9.95.0.r12.g8528b80
pkgrel=1
pkgdesc="Linux SDL/ImGui edition software for viewing .brd files"
arch=('i686' 'x86_64')
url="http://openboardview.org/"
license=('MIT')
depends=('sdl2' 'fontconfig' 'sqlite' 'gtk3')
conflicts=('openboardview')
optdepends=('mdbtools: MDB file format support')
makedepends=('git' 'cmake' 'sdl2' 'zlib' 'gtk3' 'fontconfig' 'sqlite' 'libpng' 'python')
source=("${pkgname}::git+https://github.com/${__pkgname}/${__pkgname}.git#branch=master")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cd "${srcdir}/${pkgname}"
git submodule update --init --recursive
mkdir -p build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
provides=($_pkgname=$pkgver)
cd "${srcdir}/${pkgname}"
mkdir -p "${pkgdir}"/usr/bin
install -D -m755 utilities/bvconv.sh "${pkgdir}/usr/bin/bvconv"
mkdir -p ${pkgdir}/usr/share/licenses/${_pkgname}
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
cd "${srcdir}/${pkgname}/build"
make DESTDIR="${pkgdir}" install
}
# vim:set ts=2 sw=2 et:
|