Skip to content

Instantly share code, notes, and snippets.

@phijor
Created January 19, 2022 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phijor/1b91de7b1d2f536876dffb46f9672e42 to your computer and use it in GitHub Desktop.
Save phijor/1b91de7b1d2f536876dffb46f9672e42 to your computer and use it in GitHub Desktop.
From db8f99e61e6995ab7797fc9ccc708e624ee512c9 Mon Sep 17 00:00:00 2001
From: Philipp Joram <mail [at] phijor [dot] me>
Date: Wed, 19 Jan 2022 16:16:30 +0200
Subject: [PATCH] Fix make invocations
* Actually build the package in `build()`.
* Do not run the build steps in `package()`, only install the files.
---
PKGBUILD | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index c6e4a27..e525721 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,10 +18,10 @@ _srcname="idris2-lsp"
build() {
cd "$srcdir/$_srcname"
git checkout idris2-$pkgver
- make clean
+ make build
}
package() {
cd "$srcdir/$_srcname"
- PREFIX="$pkgdir/usr" make install # Install idris2-lsp
+ PREFIX="$pkgdir/usr" make install-only # Install idris2-lsp
}
--
2.34.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment