Date: Sunday, October 2, 2022 @ 20:59:16
  Author: arojas
Revision: 1320709

archrelease: copy trunk to community-x86_64

Added:
  solidity/repos/community-x86_64/PKGBUILD
    (from rev 1320708, solidity/trunk/PKGBUILD)
Deleted:
  solidity/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   67 ++++++++++++++++++++++---------------------------------------
 1 file changed, 25 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-02 20:59:06 UTC (rev 1320708)
+++ PKGBUILD    2022-10-02 20:59:16 UTC (rev 1320709)
@@ -1,42 +0,0 @@
-# Maintainer: Nicola Squartini <[email protected]>
-
-pkgname=solidity
-pkgver=0.8.16
-_commit=07a7930e73f57ce6ed1c6f0b8dd9aad99e5c3692
-pkgrel=2
-pkgdesc='Contract-Oriented Programming Language'
-arch=('x86_64')
-url='https://github.com/ethereum/solidity'
-license=('GPL3')
-depends=('cvc4' 'z3')
-makedepends=('boost' 'cmake' 'git')
-source=("git+https://github.com/ethereum/solidity.git#commit=${_commit}";)
-sha512sums=('SKIP')
-
-prepare() {
-    cd ${pkgname}
-
-    commithash=$(git rev-parse --short=8 HEAD)
-    echo -n ${commithash} > commit_hash.txt
-    echo -n > prerelease.txt
-}
-
-build() {
-    cd ${pkgname}
-
-    mkdir build
-    cd build
-    cmake \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DTESTS=OFF \
-        -DSTRICT_Z3_VERSION=OFF \
-        ..
-    make
-}
-
-package() {
-    cd ${pkgname}/build
-
-    make DESTDIR="${pkgdir}" install
-}

Copied: solidity/repos/community-x86_64/PKGBUILD (from rev 1320708, 
solidity/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-02 20:59:16 UTC (rev 1320709)
@@ -0,0 +1,25 @@
+# Maintainer: Nicola Squartini <[email protected]>
+
+pkgname=solidity
+pkgver=0.8.17
+pkgrel=1
+pkgdesc='Contract-Oriented Programming Language'
+arch=('x86_64')
+url='https://github.com/ethereum/solidity'
+license=('GPL3')
+depends=('cvc4' 'z3')
+makedepends=('boost' 'cmake')
+source=("https://github.com/ethereum/solidity/releases/download/v$pkgver/solidity_$pkgver.tar.gz";)
+sha512sums=('4f5f8871bebf92c610909ded098a7485453235b4601f65bd371e7d922fe2f388a1a858de917755d1cbef72b08c153a3f91ca7bd459dd673d004d936c70c0ab61')
+
+build() {
+    cmake -B build -S ${pkgname}_$pkgver \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DTESTS=OFF \
+        -DSTRICT_Z3_VERSION=OFF
+    cmake --build build
+}
+
+package() {
+    DESTDIR="${pkgdir}" cmake --install build
+}

Reply via email to