Date: Saturday, January 7, 2023 @ 20:02:33
  Author: foutrelis
Revision: 1381778

archrelease: copy trunk to community-staging-x86_64

Added:
  sparse/repos/community-staging-x86_64/
  sparse/repos/community-staging-x86_64/PKGBUILD
    (from rev 1381777, sparse/trunk/PKGBUILD)
  sparse/repos/community-staging-x86_64/llvm14.patch
    (from rev 1381777, sparse/trunk/llvm14.patch)

--------------+
 PKGBUILD     |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 llvm14.patch |   52 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

Copied: sparse/repos/community-staging-x86_64/PKGBUILD (from rev 1381777, 
sparse/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-01-07 20:02:33 UTC (rev 1381778)
@@ -0,0 +1,60 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Omar Sandoval <osandov AT osandov DOT com>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski AT archlinux.org>
+# Contributor: Dan McGee <dpmcgee AT gmail.com>
+
+pkgname=sparse
+pkgver=0.6.4
+pkgrel=4
+pkgdesc='Semantic parser for C'
+arch=('x86_64')
+url='http://sparse.wiki.kernel.org/'
+license=('MIT')
+depends=(
+  'perl'
+  'libxml2'
+  'sqlite'
+)
+makedepends=(
+  'git'
+  'llvm14'
+  'gtk3'
+)
+optdepends=(
+  'llvm14-libs: for sparse-llvm'
+  'llvm14: for sparsec'
+  'gtk3: for test-inspect'
+)
+_commit='c4706aa764f3ae68258ba60be6325a5662900362'
+source=("git+https://git.kernel.org/pub/scm/devel/sparse/sparse.git#commit=$_commit";
+        llvm14.patch)
+b2sums=('SKIP'
+        
'd13e86d816c0ec3244ac566057fe1830555263989471d5ecc9f6d52bf4b2b26fc7835bd4f2f0e601a903890b25e61e7fc3ee663f88c43c4fa3cfdca1789a167c')
+
+pkgver() {
+  cd sparse
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd sparse
+
+  patch -Np1 -i ../llvm14.patch
+}
+
+build() {
+  make -C sparse
+}
+
+check() {
+  make -C sparse check
+}
+
+package() {
+  cd sparse
+
+  make PREFIX=/usr DESTDIR="$pkgdir" install
+
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Copied: sparse/repos/community-staging-x86_64/llvm14.patch (from rev 1381777, 
sparse/trunk/llvm14.patch)
===================================================================
--- community-staging-x86_64/llvm14.patch                               (rev 0)
+++ community-staging-x86_64/llvm14.patch       2023-01-07 20:02:33 UTC (rev 
1381778)
@@ -0,0 +1,52 @@
+diff --git a/Makefile b/Makefile
+index 84b4527f..01fd2b21 100644
+--- a/Makefile
++++ b/Makefile
+@@ -193,7 +193,7 @@ $(warning Your system does not have gtk3/gtk2, disabling 
test-inspect)
+ endif
+ 
+ # Can we use LLVM (needed for ... sparse-llvm)?
+-LLVM_CONFIG:=llvm-config
++LLVM_CONFIG:=llvm-config-14
+ HAVE_LLVM:=$(shell $(LLVM_CONFIG) --version >/dev/null 2>&1 && echo 'yes')
+ ifeq ($(HAVE_LLVM),yes)
+ arch := $(shell uname -m)
+diff --git a/sparse-llvm-dis b/sparse-llvm-dis
+index 2958217b..453fcf85 100755
+--- a/sparse-llvm-dis
++++ b/sparse-llvm-dis
+@@ -4,7 +4,7 @@
+ 
+ set +e
+ 
+-DIS=$("${LLVM_CONFIG:-llvm-config}" --bindir)/llvm-dis
++DIS=$("${LLVM_CONFIG:-llvm-config-14}" --bindir)/llvm-dis
+ 
+ if [ $# -eq 0 ]; then
+       echo "$(basename $0): no input files"
+diff --git a/sparsec b/sparsec
+index 3f9b60c6..0d24ffe8 100755
+--- a/sparsec
++++ b/sparsec
+@@ -32,7 +32,7 @@ done
+ TMPFILE=`mktemp -t tmp.XXXXXX`
+ 
+ 
+-LLC=`"${LLVM_CONFIG:-llvm-config}" --bindir`/llc
++LLC=`"${LLVM_CONFIG:-llvm-config-14}" --bindir`/llc
+ 
+ LLC_ARCH_OPTS=
+ case "$(uname -s)" in
+diff --git a/sparsei b/sparsei
+index 3232200e..bfd33f7e 100755
+--- a/sparsei
++++ b/sparsei
+@@ -6,7 +6,7 @@ SPARSEOPTS=
+ JIT_OPT=
+ 
+ DIRNAME=`dirname $0`
+-LLI=`"${LLVM_CONFIG:-llvm-config}" --bindir`/lli
++LLI=`"${LLVM_CONFIG:-llvm-config-14}" --bindir`/lli
+ 
+ if [ $# -eq 0 ]; then
+   echo "`basename $0`: no input files"

Reply via email to