summarylogtreecommitdiffstats
path: root/PKGBUILD.orig
blob: 487ea4c8c61a57262b4979c6e76b9d6e5e22b81d (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
# Maintainer: nano thirteen <nano13@gmx.net>

_pkgname=('trinitrotoluol')
pkgname=('trinitrotoluol-git')
pkgver=55
pkgrel=1
pkgdesc='A software for managing your supporters and your mailings)'
arch=('any')
licence=('gpl')
url='https://tambi-soft.github.io'
makedepends=('git')
<<<<<<< HEAD
depends=('qt5-base' 'qt5-webview')
=======
depends=('qt5-base' 'qt5-webview' 'qt5-charts')
>>>>>>> d58e99de85856238ad52264108e1592c48b2d4f6
source=(${_pkgname}::git+https://github.com/tambi-soft/trinitrotoluol.git)
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git rev-list --count HEAD
}

build() {
    cd "$srcdir"/"$_pkgname"
    qmake-qt5 -o Makefile trinitrotoluol.pro
<<<<<<< HEAD
    make  -j $(nproc)
=======
    make -j $(nproc)
>>>>>>> d58e99de85856238ad52264108e1592c48b2d4f6
    make clean
}

package() {
    install -D -m 755 ${srcdir}/${_pkgname}/debug/trinitrotoluol ${pkgdir}/usr/bin/trinitrotoluol
    install -D -m 644 ${srcdir}/${_pkgname}/assets/logo.ico ${pkgdir}/usr/share/icons/hicolor/128x128/apps/trinitrotoluol_logo.ico
    install -D -m 644 ${srcdir}/${_pkgname}/assets/trinitrotoluol.desktop ${pkgdir}/usr/share/applications/trinitrotoluol.desktop
}