summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Letan2023-04-30 13:38:27 +0200
committerThomas Letan2023-04-30 13:38:27 +0200
commitcfb1335baa98a4396433fde7d6568f30fbd1e320 (patch)
tree0560d8c3d72d70b580439402b10c837eb413758c
parent0de3e8243eed5b575afe6e3c4beddc44371fff36 (diff)
downloadaur-cfb1335baa98a4396433fde7d6568f30fbd1e320.tar.gz
Do not opam init if $HOME/.opam/config already exists
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD4
3 files changed, 7 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 65f769318b63..7856d725f1a3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = spatial-shell
pkgdesc = Implementing a spatial model inspired by Material Shell and Paper WM, for Sway.
pkgver = 1
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/lthms/spatial-shell
arch = x86_64
license = MPL2
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..1dd2c2fa1e91
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+spatial-shell-*-*-x86_64.pkg.tar.zst
+spatial-shell-*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 019f1e9d4e57..4b39babc51c2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=spatial-shell
pkgver=1
-pkgrel=3
+pkgrel=4
pkgdesc='Implementing a spatial model inspired by Material Shell and Paper WM, for Sway.'
url=https://github.com/lthms/spatial-shell
license=('MPL2')
@@ -28,7 +28,7 @@ sha512sums=(
)
prepare() {
- opam init -n
+ [ -f "${HOME}/.opam/config" ] || opam init -n
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i "${srcdir}/destdir.patch"
}