blob: 7f23b160602f65b5c96bdd05515267016c47a33e (
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
|
# Maintainer: gbr <gbr at pm dot me>
_pkgname=notes
pkgname=notes-git
pkgver=2.2.0.r2.g67e724f
pkgrel=2
pkgdesc='Note taking application, write down your thoughts'
arch=('x86_64')
url='https://github.com/nuttyartist/notes'
license=('MPL')
makedepends=('cmake' 'git')
depends=('hicolor-icon-theme' 'qt6-base' 'qt6-declarative' 'qt6-quick3d')
provides=('notes')
conflicts=('notes')
source=("${pkgname}::git+https://github.com/nuttyartist/notes"
'git+https://github.com/b00f/qautostart.git'
'git+https://github.com/pbek/qmarkdowntextedit.git'
'git+https://github.com/alex-spataru/QSimpleUpdater.git')
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "${pkgname}"
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname}"
git submodule init
git submodule set-url 3rdParty/qautostart "${srcdir}/qautostart"
git submodule set-url 3rdParty/qmarkdowntextedit "${srcdir}/qmarkdowntextedit"
git submodule set-url 3rdParty/QSimpleUpdater "${srcdir}/QSimpleUpdater"
git -c protocol.file.allow=always submodule update
}
build() {
cd "${pkgname}"
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_QT_VERSION=6 \
-DUPDATE_CHECKER=OFF \
-DGIT_REVISION=ON
cmake --build build
}
package() {
cd "${pkgname}"
DESTDIR="${pkgdir}" cmake --install build
}
|