summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be330ba839588096ecc73c4220fe33339d2528ff (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
# Maintainer: Florijan Hamzic <florijanh@gmail.com>

_pkgname=gnome-text-editor
pkgname=${_pkgname}-without-save-dialog
pkgver=45.1
pkgrel=1
pkgdesc='Simple text editor that focuses on session management but without the save dialog on close'
arch=(x86_64 aarch64)
url='https://gitlab.gnome.org/GNOME/gnome-text-editor'
license=(GPL3)
provides=(gnome-text-editor)
conflicts=(gnome-text-editor)
depends=(
	enchant
	gtksourceview5
	libadwaita
)
makedepends=(
	itstool
	meson
)
options=(debug)
_commit=${pkgver}
source=("${url}/-/archive/${_commit}/${_pkgname}-${_commit}.tar.gz" "avoid_save_dialog_on_close.patch")
b2sums=('96ea8b0302e740c2a9d642bea4e4ca066f73c6408e6f55c9c102ab60c572cca214b2d0297409ad5f08cca30f3504ee87e8e90e8b1436110273b53320aa2e5837'
        '722af314f923453f61542f9b1bb564d0242fbd0049dc9bc0091c46b78167163a166899ca0657e221a9dcac29a7705d73a8c22309cfade99a09140783a8908089')

prepare() {
  cd "${_pkgname}-${pkgver}"

  patch -p1 -b -i ../avoid_save_dialog_on_close.patch
}

build() {
	arch-meson ${_pkgname}-${_commit} build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs || true
}

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

	rm -rf "${pkgdir}/usr/share/gtksourceview-5"
}