summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Widawsky2019-06-05 20:06:28 -0700
committerBen Widawsky2019-06-05 20:22:27 -0700
commit26719e156a2bcdc8d68ebd050aaea21037c6dc88 (patch)
treebd81cc7a9711ab5d574283e2c7f7c4da72d930e7
parent58c9017e880c59f32170a26582c3dd4fafcb533c (diff)
downloadaur-26719e156a2bcdc8d68ebd050aaea21037c6dc88.tar.gz
Update to C based build
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD28
2 files changed, 21 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 05691ebd107..e16fc4ba675 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,15 @@
pkgbase = kanshi-git
pkgdesc = Dynamic display configuration for WMs like i3/sway
- pkgver = r45.970267e
+ pkgver = r63.725d788
pkgrel = 1
url = https://github.com/emersion/kanshi
arch = x86_64
license = MIT
makedepends = git
- depends = rust
+ makedepends = meson
+ makedepends = ninja
+ makedepends = scdoc
+ makedepends = wayland
provides = kanshi
conflicts = kanshi
source = kanshi::git+https://github.com/emersion/kanshi.git
diff --git a/PKGBUILD b/PKGBUILD
index cb4d9041cd0..1cbadb51399 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
-# Maintainer: Mattias Giese <mattiasgiese@posteo.net>
+# Maintainer: Ben Widawsky <ben@bwidawsk.net>
pkgname=kanshi-git
-pkgver=r45.970267e
+pkgver=r63.725d788
pkgrel=1
pkgdesc="Dynamic display configuration for WMs like i3/sway"
arch=(x86_64)
url="https://github.com/emersion/kanshi"
license=('MIT')
groups=()
-depends=('rust')
-makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
+depends=()
+makedepends=('git' 'meson' 'ninja' 'scdoc' 'wayland')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
@@ -27,18 +27,22 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-
-build() {
- cd "$srcdir/${pkgname%-git}"
- cargo build --release --locked
+prepare() {
+ cd "${srcdir}/${pkgname%-git}"
+ sed -i "s!join_paths(mandir, section)!join_paths(mandir, 'man' + section)!" meson.build
+ mkdir -p build
+ meson build \
+ --buildtype=release \
+ --prefix=/usr
}
-check() {
- cd "$srcdir/${pkgname%-git}"
- cargo test --release --locked ${pkgname%-git}
+build() {
+ cd "${srcdir}/${pkgname%-git}"
+ ninja -C build
}
package() {
cd "$srcdir/${pkgname%-git}"
- install -Dm 755 target/release/${pkgname%-git} -t "${pkgdir}/usr/bin"
+ DESTDIR="$pkgdir/" ninja -C build install
+
}