summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd5d4a216b7d78dd2ca9376636f37aebc8fd7954 (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
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=simple-diary-gtk
pkgver=0.4.1
pkgrel=2
pkgdesc='Simple and lightweight diary app'
arch=('x86_64')
url="https://github.com/johan-bjareholt/${pkgname}"
license=('GPL3')
depends=('libhandy' 'md4c' 'webkit2gtk' 'gtkmdview')
makedepends=('appstream-glib' 'meson')
source=("https://github.com/johan-bjareholt/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('a32000eac64bdbd2ea37d0e37c10b112f0b621dc7b316df67be4937eace1dc48')
conflicts=("${pkgname}-git")

#temporary see https://github.com/johan-bjareholt/simple-diary-gtk/commit/7c229e33113af4b40932a367452599b05831a749
prepare() {
  sed -i '28s/.*/"%s", message);/' ${pkgname}-${pkgver}/src/utils.c
}

build() {
  arch-meson ${pkgname}-${pkgver} build
  meson compile -C build
}

#temporary see https://github.com/johan-bjareholt/simple-diary-gtk/commit/7c229e33113af4b40932a367452599b05831a749
#check() {
#  meson test -C build --print-errorlogs
#}

package() {
  DESTDIR="${pkgdir}" meson install -C build
}