summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c6e58075cc6d5ab6d5964bde26b257a795a88c1 (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
55
56
57
# Maintainer: gbr <gbr at pm dot me>

_pkgname=notes
pkgname=notes-git
pkgver=2.3.1.r44.g7cd90f9
pkgrel=1
pkgdesc='Note taking application, write down your thoughts'
arch=('x86_64')
url='https://github.com/nuttyartist/notes'
license=('MPL-2.0')
depends=(
	libx11
	gcc-libs
	glibc
	hicolor-icon-theme
	qt6-base
	qt6-declarative)
makedepends=(git cmake)
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 \
		-DUPDATE_CHECKER=OFF \
		-DGIT_REVISION=ON
	cmake --build build
}

package() {
	cd "${pkgname}"
	DESTDIR="${pkgdir}" cmake --install build
}