blob: a25169f0b7759e3e62a535433cfd18ddea58aa2d (
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
|
# Maintainer: nano thirteen <nano13@gmx.net>
_pkgname=('tambi')
pkgname=('tambi-git')
pkgver=738
pkgrel=1
pkgdesc='A swiss army knife for studying the bible and much more'
arch=('any')
licence=('undecided')
url='https://github.com/nano13/tambi.git'
makedepends=('git' 'python-setuptools')
depends=('pythonqt' 'python3' 'python-pyqt5' 'qt5-charts' 'python-pyqtchart' 'python-pysword' 'python-markdown' 'python-gpsd-git' 'python-geopy' 'python-srtm-git' 'python-pillow')
source=(${_pkgname}::git+https://github.com/nano13/tambi.git
$_pkgname.sh
$_pkgname-cpp.sh)
sha256sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git rev-list --count HEAD
}
package() {
cd "$srcdir"/"$_pkgname"
# initialize submodules
git submodule update --init --recursive
# compile tambi.cpp
cd c++
qmake-qt5 -o Makefile tambi.pro
make
make clean
cd ..
# putting the freedesktop .desktop file and the program icon to the right place
mkdir -p "$pkgdir"/usr/share/applications
mkdir -p "$pkgdir"/usr/share/pixmaps
install -Dm744 assets/tambi.desktop "$pkgdir"/usr/share/applications
install -Dm744 assets/icons/logo.ico "$pkgdir"/usr/share/pixmaps/tambi.ico
mkdir -p "$pkgdir"/usr/share/$pkgname
mv * "$pkgdir"/usr/share/$pkgname
#install -dm577 "$pkgdir"/usr/share/$pkgname/
install -Dm755 "$srcdir"/$_pkgname.sh "$pkgdir"/usr/bin/$_pkgname
install -Dm755 "$srcdir"/$_pkgname-cpp.sh "$pkgdir"/usr/bin/$_pkgname-cpp
}
|