Skip to content

Instantly share code, notes, and snippets.

@bakpakin
Created May 16, 2020 15:20
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 bakpakin/076d91e8be82da15072e27af1d1595b4 to your computer and use it in GitHub Desktop.
Save bakpakin/076d91e8be82da15072e27af1d1595b4 to your computer and use it in GitHub Desktop.
Fix pkgbuild skipping static libraries and adds /usr/lib/janet for jpm.
diff --git a/PKGBUILD b/PKGBUILD
index 479ef5e..fc24851 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,7 @@ provides=('janet')
conflicts=('janet-lang-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/janet-lang/janet/archive/v${pkgver}.tar.gz")
sha256sums=('02724d6074a0d6fa53a548e8bdaaf49999f082e30b277c73444900f739a53062')
+options=('staticlibs')
janet_build='JANET_BUILD=\"f7ee8bd\"'
@@ -39,4 +40,6 @@ package() {
cp -a examples "${pkgdir}"/usr/share/janet
install -Dm644 build/doc.html "${pkgdir}"/usr/share/doc/janet/doc.html
+
+ install -Dm644 -t "${pkgdir}"/usr/lib/janet tools/.keep
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment