Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Orion 1.6.5 AUR patch
From 247fe624a707f0623a6d55f897fda735c3c21a52 Mon Sep 17 00:00:00 2001
From: sum01 <sum01@protonmail.com>
Date: Sun, 20 May 2018 17:19:21 -0400
Subject: [PATCH] Various fixes and improvements
Added:
* Dependency minimums
* GPL3 specifically
Fixed:
* The source download to be pulled as 'orion-pkgver' to avoid name collisions.
Changed:
* To the highest sha512 sum.
Removed:
* Pointless conflict (the git PKGBUILD correctly conflicts with this pkg already).
* sed command, which was unneeded since an upstream change.
---
PKGBUILD | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 07b10b7..502cd51 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,25 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
+# Contributor: sum01 <sum01@protonmail.com>
# Contributor: David McInnis <davidm@eagles.ewu.edu>
# Contributor: HabarNam <habarnam@gmail.com>
-
pkgname=orion
pkgver=1.6.5
-pkgrel=2
+pkgrel=3
pkgdesc="QML/C++-written desktop client for Twitch.tv"
arch=('x86_64')
url="https://github.com/alamminsalo/orion/"
-license=('GPL')
-depends=('mpv' 'qt5-svg' 'qt5-quickcontrols2' 'qt5-quickcontrols' 'qt5-graphicaleffects')
-conflicts=("$pkgname-git")
-source=("https://github.com/alamminsalo/orion/archive/${pkgver//_/\-}.tar.gz")
-sha256sums=('6ec51b063b7025e7cc0aaf09e8a6f9943d0d0a44ba768d2bb2bbd0e6ee60f853')
-
+license=('GPL3')
+depends=('mpv' 'qt5-svg>=5.8.0' 'qt5-quickcontrols2>=5.8.0' 'qt5-quickcontrols>=5.8.0' 'qt5-graphicaleffects>=5.8.0')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/alamminsalo/orion/archive/${pkgver}.tar.gz")
+sha512sums=('6add27b81bf2520354e1a8854c2be4caf81d1c7c161003cb86bb4911852965cff938381c0ea481c64dc91c36d45f5af44cfb6e9a6d1c379f8b3b3011bbe47c6f')
build() {
- cd $srcdir/${pkgname}-${pkgver//_/\-}
+ cd "$srcdir/${pkgname}-${pkgver}"
qmake CONFIG+=mpv
make
}
-
package() {
- cd $srcdir/${pkgname}-${pkgver//_/\-}
-
- sed -e "s|Icon=/usr/local/share/icons/orion.svg|Icon=orion|" -i distfiles/Orion.desktop
-
- install -Dm644 distfiles/orion.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/orion.svg
- install -Dm644 distfiles/Orion.desktop ${pkgdir}/usr/share/applications/Orion.desktop
- install -Dm755 orion ${pkgdir}/usr/bin/orion
+ cd "$srcdir/${pkgname}-${pkgver}"
+ install -Dm644 distfiles/orion.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/orion.svg"
+ install -Dm644 distfiles/Orion.desktop "${pkgdir}/usr/share/applications/Orion.desktop"
+ install -Dsm755 orion "${pkgdir}/usr/bin/orion"
}
--
3AD44B909DC5AA919BF97768339CB8BE119B90C0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.