summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Boman2020-07-12 16:29:09 +0200
committerMagnus Boman2020-07-12 16:29:09 +0200
commitee54a13eba000dfdad591090b37358c2cb0ba6d3 (patch)
treece1e3ea501b4566726e3cac29b4b133181146336
parent618112f1538f24253ec1d1bdb358deb43938962e (diff)
downloadaur-ee54a13eba000dfdad591090b37358c2cb0ba6d3.tar.gz
fahcontrol-git: clean up pkgbuild
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD13
2 files changed, 7 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c30c89d1729..0868768cb7a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,7 +12,7 @@ pkgbase = fahcontrol-git
optdepends = fahviewer: 3D simulation viewer
provides = fahcontrol
conflicts = fahcontrol
- source = fahcontrol-git::git+https://github.com/FoldingAtHome/fah-control
+ source = git+https://github.com/FoldingAtHome/fah-control.git
source = FAHControl.desktop
md5sums = SKIP
md5sums = 81c1953f5c7cfb981ba1b7bf6a046f88
diff --git a/PKGBUILD b/PKGBUILD
index 5dc503b5c6f..e6b6618e12c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,6 @@
# Maintainer: katt <magunasu.b97@gmail.com>
-_pkgname=fahcontrol
-pkgname=$_pkgname-git
+pkgname=fahcontrol-git
pkgver=r82.91e9fe6
pkgrel=1
pkgdesc='Folding@home Client Advanced Control GUI - git version'
@@ -11,20 +10,20 @@ license=('GPL')
depends=('python2' 'pygtk')
optdepends=('fahviewer: 3D simulation viewer')
makedepends=('git' 'python2-setuptools')
-provides=("$_pkgname")
-conflicts=("$_pkgname")
-source=("$pkgname::git+https://github.com/FoldingAtHome/fah-control"
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("git+https://github.com/FoldingAtHome/fah-control.git"
"FAHControl.desktop")
md5sums=('SKIP'
'81c1953f5c7cfb981ba1b7bf6a046f88')
pkgver() {
- cd "$pkgname"
+ cd fah-control
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd "$pkgname"
+ cd fah-control
python2 setup.py install --root="$pkgdir"
install -Dm644 FAHControl.desktop -t "$pkgdir"/usr/share/applications
}