summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b92c6c4ccda46d107e8b1aca73091b20619eddb (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
# Maintainer: ItsZariep <itszariep@disroot.org>
pkgname=sgnotes-git
pkgver=r25.b8891ff
pkgrel=1
pkgdesc="A simple GTK3 note-taking application"
arch=('any')
url="https://codeberg.org/ItsZariep/SGNotes"
license=('GPL')
depends=('gtk3' 'gtksourceview4')
makedepends=('git' 'gtk3' 'gtksourceview4')
source=("git+$url.git#branch=stable")
sha256sums=('SKIP')

pkgver() {
cd "$srcdir/SGNotes"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
cd "$srcdir/SGNotes"
make WITHSOURCEVIEW=1
}

package() {
cd "$srcdir/SGNotes"
make PREFIX="$pkgdir/usr" install
}

clean() {
cd "$srcdir/SGNotes"
make clean
}