diff options
author | Sam Whited | 2018-10-01 10:40:46 -0500 |
---|---|---|
committer | Sam Whited | 2018-10-01 10:41:11 -0500 |
commit | f216c351a7f768f976b0856dafd06aa6f02d4aca (patch) | |
tree | 06f3fd1b7aed4cc2c7093e3337f63bc52f611778 | |
parent | b67008202b74b227cb318df98a7304fd1d33cc66 (diff) | |
download | aur-f216c351a7f768f976b0856dafd06aa6f02d4aca.tar.gz |
Fix rebuilds
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 11 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = writeas-gtk pkgdesc = Write.as GTK desktop app pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 2 url = https://write.as/apps/desktop arch = x86_64 license = GPL3 @@ -2,7 +2,7 @@ pkgname=writeas-gtk pkgver=1.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="Write.as GTK desktop app" arch=('x86_64') url="https://write.as/apps/desktop" @@ -17,15 +17,19 @@ makedepends=( 'ninja' 'vala' ) -source=(https://code.as/writeas/writeas-gtk/archive/v$pkgver.tar.gz) +source=(https://code.as/writeas/writeas-gtk/archive/v${pkgver}.tar.gz) sha256sums=('c6487821b5fbeef38ee50082d42a89be97b2fdbd5c3205d8a9c961ca0c3c7fbf') +prepare() { + mkdir -p build +} + build() { - cd "${srcdir}/${pkgname}" - meson build --prefix="${pkgdir}/usr" --reconfigure - ninja -C "build" + # Temporary workaround for https://github.com/mesonbuild/meson/issues/4247 + arch-meson "${pkgname}" build || arch-meson "${pkgname}" build --reconfigure + ninja -C build } package() { - ninja install -C "${srcdir}/${pkgname}/build" + DESTDIR="${pkgdir}" ninja install -C build } |