summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 675032b3fb139381b04bab3fce7132e019564f9c (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
# Maintainer: silverhikari <kerrickethan@gmail.com>
pkgname=libratify-git
pkgver=v2.0.0.r7.b9b9e25
pkgrel=1
pkgdesc="RTF serialization and deserialization for GtkTextBuffer"
arch=(x86_64)
url="https://github.com/ptomato/ratify.git"
license=('LGPL-3.0+')
depends=('gtk3')
makedepends=('git' 'ninja' 'meson')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("libratify::git+${url}")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	arch-meson build
	ninja -C build
}

package() {
cd "$srcdir/${pkgname%-git}"
meson install -C build --destdir "$pkgdir"
}