blob: 70228154ffd81310d5986051fe26a924f4830be8 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="qownnotes"
pkgver=19.11.11
pkgrel=0
pkgdesc="Plain-text file markdown note taking with Nextcloud/ownCloud integration"
url="https://www.qownnotes.org/"
arch="all !ppc64le !s390x"
license="GPL-2.0-only"
makedepends="qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtxmlpatterns-dev
qt5-qttools-dev qt5-qtbase-dev qt5-qtwebsockets-dev botan-dev"
subpackages="$pkgname-lang"
source="https://download.tuxfamily.org/qownnotes/src/qownnotes-${pkgver}.tar.xz"
prepare() {
default_prepare
echo "#define RELEASE \"Alpine Linux\"" > release.h
}
build() {
/usr/lib/qt5/bin/qmake \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE_LFLAGS_RELEASE="${LDFLAGS}"
make
}
check() {
make check
}
package() {
install -D -m755 QOwnNotes "${pkgdir}/usr/bin/QOwnNotes"
install -D -m644 PBE.QOwnNotes.desktop "${pkgdir}/usr/share/applications/PBE.QOwnNotes.desktop"
install -D -m644 "images/icons/128x128/apps/QOwnNotes.png" "${pkgdir}/usr/share/pixmaps/QOwnNotes.png"
for format in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256 512x512 ; do
install -D -m644 "images/icons/${format}/apps/QOwnNotes.png" "${pkgdir}/usr/share/icons/hicolor/$format/apps/QOwnNotes.png"
done
}
lang() {
install -d "${subpkgdir}/usr/share/QOwnNotes/languages/"
install -D -m644 ${builddir}/languages/*.qm "${subpkgdir}/usr/share/QOwnNotes/languages/"
}
sha512sums="cc12c2cc35605dccc451e114394d90b65affd29ab61ebf9d248ae60b0847a5ec07355c4c161e9302710f087a6da88f9e43b8efef9cb17e2742e541069ee02822 qownnotes-19.11.11.tar.xz"
|