forked from rsdn/avalon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
46 lines (38 loc) · 1.53 KB
/
PKGBUILD
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: Anton Batenev <antonbatenev@yandex.ru>
pkgname=('avalon3')
pkgver=3.0.2
pkgrel=1
pkgdesc="RSDN offline client"
arch=('i686' 'x86_64')
url="https://github.com/abbat/avalon"
license=('BSD')
depends=('qt5-base' 'qt5-webkit' 'aspell' 'zlib')
makedepends=('git')
optdepends=('aspell-ru: Russian dictionary for aspell' 'aspell-en: English dictionary for aspell')
conflicts=('avalon')
source=("git+https://github.com/abbat/avalon.git#tag=v${pkgver}")
sha256sums=('SKIP')
build() {
cd "${pkgname}"
PWD=$(pwd)
qmake-qt5 -project -recursive -Wall -nopwd -o "avalon.pro" \
"CONFIG += release" \
"QT += network sql core widgets webkitwidgets" \
"INCLUDEPATH += src" \
"DEFINES += AVALON_PACKAGE" \
"LIBS += -laspell -lz" \
"${PWD}/src"
qmake-qt5 "avalon.pro"
make
}
package() {
cd "${pkgname}"
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/share/pixmaps"
install -d "${pkgdir}/usr/share/applications"
install -D -m755 avalon "${pkgdir}/usr/bin/avalon"
install -D -m644 avalon.desktop "${pkgdir}/usr/share/applications/avalon.desktop"
install -D -m644 src/icons/avalon.xpm "${pkgdir}/usr/share/pixmaps/avalon.xpm"
install -D -m644 README.md "${pkgdir}/usr/share/doc/avalon/README.md"
install -D -m644 debian/copyright "${pkgdir}/usr/share/licenses/avalon/LICENSE"
}