blob: 47bc6757f39a38def9625aaa6abe1f8c53c4e6ed (
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
|
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
pkgname=imrsh-git
pkgdesc='Interactive POSIX shell based on mrsh'
pkgver=r28.da592a3
pkgrel=1
url=https://git.sr.ht/~sircmpwn/imrsh
arch=(x86_64)
license=(GPL3)
conflicts=(imrsh)
provides=(imrsh)
depends=(libtickit mrsh)
makedepends=(meson ninja git)
source=("${pkgname}::git+${url}")
install=imrsh-git.install
sha512sums=(SKIP)
pkgver () {
cd "${pkgname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build () {
rm -rf build
arch-meson -Dstrip=true build "${pkgname}"
ninja -C build
}
check () {
meson test -C build
}
package () {
DESTDIR="${pkgdir}" ninja -C build install
}
|