blob: f9ee0be8b11ec253a8da6075be4cd6c1e6a03a10 (
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: Your Name <youremail@domain.com>
pkgname=zix-git
pkgver=r473.262d4a1
pkgrel=1
pkgdesc="A lightweight C library of portability wrappers and data structures"
arch=('any')
url="https://github.com/drobilla/zix"
license=('ISC')
depends=()
makedepends=('git' 'meson')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("git+${url}")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
meson setup --prefix=/usr . build
meson compile -C build
}
package() {
cd "$srcdir/${pkgname%-git}"
meson install -C build --destdir "$pkgdir"
install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|