makedeb
A GUI for legendary, an open source replacement for Epic Games Launcher
Click here to go back to the commit logs for rare.
Hash: c99c811f98ab41a2c19fb2594566a6933d0aa254
Message: Fix import error for legendary
diff --git a/.SRCINFO b/.SRCINFO
index 50c9ae8..d8f2d43 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,20 +8,19 @@ pkgbase = rare
arch = any
license = GPL3
makedepends = git
- makedepends = python3-setuptools
+ makedepends = python-setuptools
makedepends = gendesk
- depends = python3-wheel
- depends = python3-setuptools
- depends = python3-pyqt5
- depends = python3-qtawesome
- depends = python3-requests
- depends = python3-psutil
- depends = python3-pypresence
+ depends = python-wheel
+ depends = python-setuptools
+ depends = python-pyqt5
+ depends = python-qtawesome
+ depends = python-requests
+ depends = python-psutil
+ depends = python-pypresence
optdepends = wine-staging: Run windows games
- provides = rare
- conflicts = rare-git
conflicts = legendary
- source = rare-1.7.0.tar.gz::https://github.com/Dummerle/Rare/archive/refs/tags/1.7.0.tar.gz
+ conflicts = rare-git
+ source = rare-1.7.0::git+https://github.com/Dummerle/Rare#tag=1.7.0
sha256sums = SKIP
pkgname = rare
diff --git a/PKGBUILD b/PKGBUILD
index 63f0adc..31185a7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,34 +8,45 @@ pkgdesc="A GUI for legendary, an open source replacement for Epic Games Launcher
arch=('any')
url="https://github.com/Dummerle/Rare"
license=('GPL3')
-depends=("python3-wheel" "python3-setuptools" "python3-pyqt5" "python3-qtawesome" "python3-requests" "python3-psutil" "python3-pypresence")
-makedepends=("git" "python3-setuptools" "gendesk")
+groups=()
+depends=("python-wheel" "python-setuptools" "python-pyqt5" "python-qtawesome" "python-requests" "python-psutil" "python-pypresence")
+makedepends=("git" "python-setuptools" "gendesk")
+checkdepends=()
optdepends=("wine-staging: Run windows games")
-provides=('rare')
-conflicts=('rare-git' 'legendary')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
+provides=()
+conflicts=("legendary" "rare-git")
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("$pkgname-$pkgver::git+$url#tag=$pkgver")
+noextract=()
sha256sums=("SKIP")
prepare() {
- cd "$srcdir/Rare-$pkgver"
- cp $srcdir/Rare-$pkgver/rare/resources/images/Rare.png $srcdir/Rare-$pkgver/$pkgname.png
- sed -i 's/mdi.view-grid-outline/mdi.view-grid/' $srcdir/Rare-$pkgver/rare/utils/extra_widgets.py
- gendesk -f -n \
- --pkgname "$pkgname" \
- --pkgdesc "$pkgdesc" \
- --categories "Application;Game;Launcher" \
- --custom "Keywords=epic;games;launcher;legendary;"
+ cd $srcdir/$pkgname-$pkgver
+ git submodule init
+ git submodule update
+ cd "$srcdir/$pkgname-$pkgver"
+ cp $srcdir/$pkgname-$pkgver/rare/resources/images/Rare.png $srcdir/$pkgname-$pkgver/$pkgname.png
+ sed -i 's/mdi.view-grid-outline/mdi.view-grid/' $srcdir/$pkgname-$pkgver/rare/utils/extra_widgets.py
+ gendesk -f -n \
+ --pkgname "$pkgname" \
+ --pkgdesc "$pkgdesc" \
+ --categories "Application;Game;Launcher" \
+ --custom "Keywords=epic;games;launcher;legendary;"
}
build() {
- cd "$srcdir/Rare-$pkgver"
- python3 setup.py build
+ cd "$srcdir/$pkgname-$pkgver"
+ python3 setup.py build
}
package() {
- cd "$srcdir/Rare-$pkgver"
- python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- install -Dm644 "${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
- install -Dm644 "${pkgname}.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 "${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${pkgname}.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}