blob: 9e944c35c5e20d1438828ba1d360a5409fc859cf (
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
|
# Maintainer: Zhangyuan Nie <yuan@znie.org>
pkgname=butter-git
pkgver=0.1.0.r89.e7ece73
pkgrel=1
pkgdesc="GTK application for Btrfs snapshot management"
arch=('x86_64')
url="https://github.com/zhangyuannie/butter"
license=('GPL3')
depends=('gtk4' 'libadwaita' 'polkit' 'btrfs-progs')
makedepends=('meson' 'rust' 'git' 'clang')
conflicts=('butter')
provides=('butter')
source=("${pkgname}::git+https://github.com/zhangyuannie/butter.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
local l=$(grep -A 3 "\<project(" "meson.build" | grep "\<version\>" | sed "s|.*version: '\(.*\)'.*|\1|")
local r=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
printf "%s.%s" "${l}" "${r}"
}
build() {
cd "${pkgname}"
arch-meson . build
meson compile -C build
}
package() {
cd "${pkgname}"
DESTDIR="${pkgdir}" meson install -C build
}
|