[arch-commits] Commit in radare2-cutter/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sun May 12 18:45:55 UTC 2019


    Date: Sunday, May 12, 2019 @ 18:45:55
  Author: ffy00
Revision: 467064

upgpkg: radare2-cutter 1.8.1-1

Modified:
  radare2-cutter/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-12 18:38:10 UTC (rev 467063)
+++ PKGBUILD	2019-05-12 18:45:55 UTC (rev 467064)
@@ -2,8 +2,7 @@
 # Contributor: Aaron McDaniel (mcd1992) <'aur' at the domain 'fgthou.se'>
 
 pkgname=radare2-cutter
-_gitcommit=67f865af71cd8534ace3f58021cc5802b3a4a15a
-pkgver=1.8.0.r37.g67f865af
+pkgver=1.8.1
 pkgrel=1
 pkgdesc='Qt and C++ GUI for radare2 reverse engineering framework'
 url='https://github.com/radareorg/cutter'
@@ -10,29 +9,28 @@
 arch=('x86_64')
 license=('GPL3')
 depends=('radare2' 'capstone' 'qt5-base' 'qt5-svg' 'qt5-webengine' 'icu' 'python' 'jupyter')
-makedepends=('git' 'cmake')
-source=(${pkgname}::"git+https://github.com/radareorg/cutter#commit=${_gitcommit}")
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha512sums=('SKIP')
 
-pkgver() {
-  cd ${pkgname}
-  git describe --always --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
+build() {
+  mkdir -p cutter-$pkgver/build
+  cd cutter-$pkgver/build
 
-build() {
-  mkdir -p ${pkgname}/build
-  cd ${pkgname}/build
   qmake ../src/Cutter.pro
+
   make
 }
 
 package() {
-  cd ${pkgname}
-  install -Dm 755 build/Cutter -t "${pkgdir}/usr/bin"
-  install -Dm 644 src/org.radare.Cutter.desktop -t "${pkgdir}/usr/share/applications"
-  install -Dm 644 src/img/cutter.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
-  install -d "${pkgdir}/usr/share/doc/${pkgname}"
-  cp -a docs/* "${pkgdir}/usr/share/doc/${pkgname}"
+  cd cutter-$pkgver
+
+  install -Dm 755 build/Cutter -t "$pkgdir/usr/bin"
+  install -Dm 644 src/org.radare.Cutter.desktop -t "$pkgdir/usr/share/applications"
+  install -Dm 644 src/img/cutter.svg -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
+  install -d "$pkgdir/usr/share/doc/$pkgname"
+
+  cp -a docs/* "$pkgdir/usr/share/doc/$pkgname"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list