blob: fe445b3b5634bf41b3c77e8a89d081af1bf29cb7 (
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
|
# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
pkgname=openmittsu-git
_fullname=openMittsu
pkgver=r389.fcf4c70
pkgrel=1
pkgdesc="An open source implementation and desktop client of the Threema Messenger App."
arch=('x86_64' 'i686')
url="https://github.com/blizzard4591/openMittsu"
license=('GPL')
depends=('libsodium' 'qrencode' 'qt5-base' 'qt5-multimedia' 'sqlcipher' 'libqsqlcipher')
makedepends=('git' 'cmake')
provides=('openmittsu')
conflicts=('openmittsu')
source=('git+https://github.com/blizzard4591/openMittsu'
'openmittsu.desktop')
sha256sums=('SKIP'
'e37f4cf33dec07d3c486bb1ea454795a4c06be0443391c6741cc37f3b03bc3c3')
prepare() {
cd "$srcdir/$_fullname"
git submodule init
git submodule update
}
build() {
# Temporary build dir
rm -rf "$srcdir/$_fullname-build"
git clone --recursive "$srcdir/$_fullname" "$srcdir/$_fullname-build"
cd "$srcdir/$_fullname-build"
# Compile
cd "$srcdir/$_fullname-build"
cmake \
-DLIBSODIUM_INCLUDE_DIRS="/usr/include" \
-DLIBSODIUM_LIBRARIES="/usr/lib/libsodium.so" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
.
make
}
package() {
cd "$srcdir/$_fullname-build"
make install
install -Dm644 "$srcdir/openmittsu.desktop" "$pkgdir/usr/share/applications/openmittsu.desktop"
}
pkgver() {
cd "$srcdir/$_fullname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
# vim:set ts=2 sw=2 et:
|