makedeb


vlang-bin 0.2.4-2


Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero dependencies

Click here to go back to the commit logs for vlang-bin.

Commit:


Hash: 11f9e35f8d122b0d9c07d7733faa96567210656b

Message: Install bin instead of git

Diff


diff --git a/.SRCINFO b/.SRCINFO
index b62ec54..095fb51 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,15 @@
-pkgbase = vlang-bin
-	pkgdesc = Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero dependencies
-	pkgver = 0.2.2
-	pkgrel = 1
-	url = https://vlang.io
-	arch = x86_64
-	license = MIT
-	depends = libc-bin
-	provides = vlang
-	source = vlang-bin-0.2.2.zip::https://github.com/vlang/v/releases/download/0.2.2/v_linux.zip
-	sha256sums = d791102173b35f8af1446b7a6207b326dc8d3ddf3f43f433979616550e85d56d
-
+generated-by = makedeb
 pkgname = vlang-bin
+install = vlang-bin.install
+pkgbase = vlang-bin
+pkgdesc = Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero dependencies
+pkgrel = 1
+pkgver = 0.2.4
+url = https://vlang.io
+arch = amd64
+depends = libc-bin
+depends = libssl-dev
+license = MIT
+provides = vlang
+source = vlang-bin-0.2.4.zip::https://github.com/vlang/v/releases/download/0.2.4/v_linux.zip
+sha256sums = 2656b81e8cc46ffb157c9d2dc67e5494522d33418f01dfc098757bfc64f8d085
diff --git a/PKGBUILD b/PKGBUILD
index 96d5f69..508e1cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,28 @@
-pkgname=vlang-git
-pkgver=0.2.2.r796.gfbc02cbc5
+# Maintainer:  Dimitris Kiziridis <ragouel at outlook dot com>
+
+pkgname=vlang-bin
+pkgver=0.2.4
 pkgrel=1
-pkgdesc='Simple, fast, safe, compiled language for developing maintainable software'
-arch=('x86_64')
-url='https://vlang.io'
+pkgdesc='Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero dependencies'
+arch=('amd64')
+url="https://vlang.io"
+install=vlang-bin.install
 license=('MIT')
-depends=('libc-bin')
-makedepends=('git')
 provides=('vlang')
-conflicts=('v' 'vlang' 'vlang-bin')
-source=('vlang::git+https://github.com/vlang/v')
-sha256sums=('SKIP')
-
-pkgver() {
-  cd "${srcdir}/vlang"
-  # Weekly tags are considered older than semantic tags that are older than
-  # them, so to prevent version resolution problems we exclude weekly tags.
-  git describe --long --tags --exclude "weekly*" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-build() {
-  cd "${srcdir}/vlang"
-  # We don't require optimizations when compiling the bootstrap executable and
-  # -O2 actually breaks `./v self` (resulting in "cgen error:"), so we empty
-  # CFLAGS and LDFLAGS to ensure successful compilation.
-  CFLAGS="" LDFLAGS="" prod=1 make
-
-  # vpm and vdoc fail to compile with "unsupported linker option" when LDFLAGS
-  # is set
-  LDFLAGS="" ./v build-tools
-}
+depends=('libc-bin' 'libssl-dev')
+source=("${pkgname}-${pkgver}.zip::https://github.com/vlang/v/releases/download/${pkgver}/v_linux.zip")
+sha256sums=('2656b81e8cc46ffb157c9d2dc67e5494522d33418f01dfc098757bfc64f8d085')
 
 package() {
-  cd "${srcdir}/vlang"
   install -d "$pkgdir/usr/lib/vlang" "$pkgdir/usr/share/vlang" "$pkgdir/usr/bin"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  install -Dm755 v "$pkgdir/usr/lib/vlang"
-  cp -a cmd "$pkgdir/usr/lib/vlang/"
-  cp -a examples "$pkgdir/usr/share/vlang/"
-  cp -a thirdparty "$pkgdir/usr/lib/vlang/"
-  cp -a vlib "$pkgdir/usr/lib/vlang/"
-  cp v.mod "$pkgdir/usr/lib/vlang/"
+  install -Dm644 v/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm755 v/v "$pkgdir/usr/lib/vlang"
+  cp -avR v/cmd "$pkgdir/usr/lib/vlang/"
+  chmod -R 777 "$pkgdir/usr/lib/vlang/cmd"
+  cp -avR v/examples "$pkgdir/usr/share/vlang/"
+  cp -avR v/thirdparty "$pkgdir/usr/lib/vlang/"
+  cp -avR v/vlib "$pkgdir/usr/lib/vlang/"
+  cp v/v.mod "$pkgdir/usr/lib/vlang/"
   ln -s /usr/lib/vlang/v "$pkgdir/usr/bin/v"
-
-  touch "$pkgdir/usr/lib/vlang/cmd/tools/.disable_autorecompilation"
 }
+# vim:set ts=2 sw=2 et:
diff --git a/vlang-bin.install b/vlang-bin.install
new file mode 100644
index 0000000..caf1f8f
--- /dev/null
+++ b/vlang-bin.install
@@ -0,0 +1,13 @@
+# Maintainer:  Dimitris Kiziridis <ragouel at outlook dot com>
+
+pre_upgrade() {
+  sudo rm -rf /usr/lib/vlang
+}
+
+pre_install() {
+  pre_upgrade
+}
+
+post_remove() {
+  pre_upgrade
+}
\ No newline at end of file