[arch-commits] Commit in rofi-calc/repos (3 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sun May 3 20:35:16 UTC 2020
Date: Sunday, May 3, 2020 @ 20:35:15
Author: svenstaro
Revision: 624644
archrelease: copy trunk to community-x86_64
Added:
rofi-calc/repos/community-x86_64/
rofi-calc/repos/community-x86_64/PKGBUILD
(from rev 624643, rofi-calc/trunk/PKGBUILD)
rofi-calc/repos/community-x86_64/rofi-calc.install
(from rev 624643, rofi-calc/trunk/rofi-calc.install)
-------------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
rofi-calc.install | 7 +++++++
2 files changed, 45 insertions(+)
Copied: rofi-calc/repos/community-x86_64/PKGBUILD (from rev 624643, rofi-calc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-05-03 20:35:15 UTC (rev 624644)
@@ -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:
Copied: rofi-calc/repos/community-x86_64/rofi-calc.install (from rev 624643, rofi-calc/trunk/rofi-calc.install)
===================================================================
--- community-x86_64/rofi-calc.install (rev 0)
+++ community-x86_64/rofi-calc.install 2020-05-03 20:35:15 UTC (rev 624644)
@@ -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