summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71fc6ccf2a594e2e74c9ba3c2124f053525119c4 (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: Xerz <xerz@xerz.one>
pkgname=moss-container-git
pkgver=r140.143364c
pkgrel=2
pkgdesc="Serpent OS build tool dependency"
arch=('x86_64')
url="https://github.com/serpent-os/moss-container"
license=('ZLIB')
depends=('moss-serpent')
makedepends=('git' 'ldc' 'meson' 'ninja')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/serpent-os/moss-container"
        "git+https://github.com/serpent-os/moss-core")
md5sums=('SKIP'
         '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 --prefix=/usr --buildtype=plain build
	meson compile -C build
}

package() {
	cd "$srcdir/${pkgname%-git}"
	DESTDIR="$pkgdir" meson install -C build
	install -D -m644 "${srcdir}/${pkgname%-git}/LICENSES/Zlib.txt" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}