[arch-commits] Commit in (5 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Sun May 3 20:33:50 UTC 2020


    Date: Sunday, May 3, 2020 @ 20:33:49
  Author: svenstaro
Revision: 624642

Move rofi-calc from AUR

Added:
  rofi-calc/
  rofi-calc/repos/
  rofi-calc/trunk/
  rofi-calc/trunk/PKGBUILD
  rofi-calc/trunk/rofi-calc.install

-------------------+
 PKGBUILD          |   38 ++++++++++++++++++++++++++++++++++++++
 rofi-calc.install |    7 +++++++
 2 files changed, 45 insertions(+)

Added: rofi-calc/trunk/PKGBUILD
===================================================================
--- rofi-calc/trunk/PKGBUILD	                        (rev 0)
+++ rofi-calc/trunk/PKGBUILD	2020-05-03 20:33:49 UTC (rev 624642)
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+pkgname=rofi-calc
+pkgver=1.7
+pkgrel=1
+pkgdesc="Do calculations in rofi"
+arch=('x86_64')
+url="https://github.com/svenstaro/rofi-calc"
+license=(MIT)
+depends=('rofi' 'libqalculate')
+install=$pkgname.install
+source=($pkgname-$pkgver.tar.gz::https://github.com/svenstaro/rofi-calc/archive/v${pkgver}.tar.gz)
+sha512sums=('e05b13b059f759718b8b8dd7b1592d6b0a469eb1e1c84f50de80b7d5e16182c75f4676278d4e0cb9c29f3fed418ccdd2bae144c259fdfb9fc7d54f1500aa20a5')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  autoreconf -i
+  rm -rf build
+  mkdir build
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver/build"
+
+  ../configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/build"
+
+  make DESTDIR="$pkgdir/" install
+
+  install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Added: rofi-calc/trunk/rofi-calc.install
===================================================================
--- rofi-calc/trunk/rofi-calc.install	                        (rev 0)
+++ rofi-calc/trunk/rofi-calc.install	2020-05-03 20:33:49 UTC (rev 624642)
@@ -0,0 +1,7 @@
+post_upgrade() {
+    echo "Recommended way to launching rofi-calc: rofi -show calc -modi calc -no-show-match -no-sort"
+}
+
+post_install() {
+    post_upgrade
+}


More information about the arch-commits mailing list