summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Whited2018-10-01 10:40:46 -0500
committerSam Whited2018-10-01 10:41:11 -0500
commitf216c351a7f768f976b0856dafd06aa6f02d4aca (patch)
tree06f3fd1b7aed4cc2c7093e3337f63bc52f611778
parentb67008202b74b227cb318df98a7304fd1d33cc66 (diff)
downloadaur-f216c351a7f768f976b0856dafd06aa6f02d4aca.tar.gz
Fix rebuilds
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD16
2 files changed, 11 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b7de81ffb75..540c909fcf7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 119199f1c65..6c7f6bb0d8b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}