Package Details: fetchcord 2.7.7-1

Git Clone URL: https://aur.archlinux.org/fetchcord.git (read-only, click to copy)
Package Base: fetchcord
Description: FetchCord grabs your OS info and displays it as Discord Rich Presence
Upstream URL: https://github.com/MrPotatoBobx/fetchcord
Licenses: MIT
Provides: fetchcord
Submitter: BlivionIaG
Maintainer: BlivionIaG
Last Packager: BlivionIaG
Votes: 1
Popularity: 0.000000
First Submitted: 2021-06-29 20:43 (UTC)
Last Updated: 2021-09-15 21:13 (UTC)

Required by (0)

Sources (1)

Latest Comments

g3tchoo commented on 2021-10-29 03:21 (UTC)

As of r772.5030351-1, it seems like the aur package python-pypresence is needed as a dependency; or else you get a ModuleNotFoundError

lmartinez-mirror commented on 2021-06-29 20:59 (UTC) (edited on 2021-06-30 02:35 (UTC) by lmartinez-mirror)

You shouldn't need to handle the case of modified systemd files, upstream says they can be edited using systemctl --user edit fetchcord instead.

EDIT: Got a patch you can use for this package.

diff --git a/PKGBUILD b/PKGBUILD
index dfe5b02..e669b6a 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,33 @@
 # Maintainer BlivionIaG <kev29lt@gmail.com>
+# Contributor Luis Martinez <luis dot martinez at tuta dot io>

 pkgname=fetchcord
+_name=FetchCord
 pkgver=2.7.6
-pkgrel=1
-pkgdesc="FetchCord grabs your OS info and displays it as Discord Rich Presence"
+pkgrel=2
+pkgdesc="Displays OS info and system stats as Discord Rich Presence"
 arch=('any')
-url="https://github.com/MrPotatoBobx/fetchcord"
+url="https://github.com/mrpotatobobx/fetchcord"
 license=('MIT')
-depends=('python')
-provides=('fetchcord')
-depends=('neofetch' 'python-psutil' 'python-setuptools')
-source=("fetchcord::git+$url#branch=testing")
-sha256sums=('SKIP')
+depends=('neofetch' 'python>=3.6' 'python-pypresence' 'python-importlib_resources' 'python-psutil')
+makedepends=('python-setuptools')
+## GitHub lags behind PyPI
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_name-$pkgver.tar.gz"
+        "LICENSE-$pkgver::https://raw.githubusercontent.com/mrpotatobobx/fetchcord/master/LICENSE"
+        "fetchcord-$pkgver.service::https://raw.githubusercontent.com/mrpotatobobx/fetchcord/master/systemd/fetchcord.service")
+sha256sums=('f6b97b012297d44ba7b8a9232b97cf217976dd76e3f58e1d7a2be1f9dbdb839a'
+            '4d9727b5d044707d6e68de4eed02d0064c930be14f74ee49d8f4e2cca83c8da0'
+            '0f2f171ac4fe3fc7e9a8a3a779629924975b78a70b23677e480ff24be95d64e7')
 install=fetchcord.install

-pkgver() {
-  cd "$srcdir/fetchcord"
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
 build() {
-  cd "$srcdir/fetchcord"
+  cd "$_name-$pkgver"
   python setup.py build
 }

 package() {
-  cd "$srcdir/fetchcord"
-
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  systemddir="/usr/lib/systemd/user"
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
-
-  if [ -e "$systemddir/fetchcord.service" ]; then
-    echo "Not overwriting existing fetchcord.service" && install -Dm644 "$systemddir/fetchcord.service" "$pkgdir$systemddir/fetchcord.service";
-  else 
-    install -Dm644 systemd/fetchcord.service "$pkgdir$systemddir/fetchcord.service";
-  fi
-
+  cd "$_name-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm644 "$srcdir/fetchcord.service" -t "$pkgdir/usr/lib/systemd/user/"
 }