summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 442cc148ea188f7247eea0725ae8c799bb8d2ff5 (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
# Maintainer: Sam Whited <sam@samwhited.com>

pkgname=writeas-gtk
pkgver=1.0.0
pkgrel=3
pkgdesc='Write.as GTK desktop app'
arch=('x86_64')
url='https://write.as/apps/desktop'
license=('GPL3')
depends=(
	'gtksourceview3'
)
makedepends=(
	'meson'
	'ninja'
	'vala'
)
optdepends=(
	'writeas-cli: web publishing support'
)
source=("https://code.as/writeas/writeas-gtk/archive/v${pkgver}.tar.gz")
sha256sums=('c6487821b5fbeef38ee50082d42a89be97b2fdbd5c3205d8a9c961ca0c3c7fbf')

prepare() {
	mkdir -p build
}

build() {
	# Temporary workaround for https://github.com/mesonbuild/meson/issues/4247
	arch-meson "${pkgname}" build || arch-meson "${pkgname}" build --reconfigure
	ninja -C build
}

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