summarylogtreecommitdiffstats
path: root/0001-revision.patch
blob: 2c9066f03bac85445a3e583e8d6138bd312da51c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
From 9dbdef54f689cc246c90cdac61b2c018c1869310 Mon Sep 17 00:00:00 2001
From: FabioLolix <fabio.loli@disroot.org>
Date: Fri, 11 Dec 2020 19:22:24 +0100
Subject: [PATCH] revision

---
 .SRCINFO |  5 +++--
 PKGBUILD | 26 +++++++++++++-------------
 2 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 72d30bc..00b57d1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
 pkgbase = proton-caller-git
 	pkgdesc = Run any Windows program through Proton
-	pkgver = 1.4.0
+	pkgver = 1.3.2.r10.g3b2fc50
 	pkgrel = 1
 	url = https://github.com/caverym/Proton-Caller/
 	arch = x86_64
 	license = GPL3
+	makedepends = git
 	depends = steam
 	depends = dxvk
-	depends = git
+	provides = proton-caller
 	conflicts = proton-caller
 	source = git+https://github.com/caverym/Proton-Caller.git
 	sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 1351c94..fd696e7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,7 @@
 # Maintainer: Avery Murray <averylapine@gmail.com>
 
-_pkgname=proton-call
 pkgname=proton-caller-git
-__pkgname=Proton-Caller
-pkgver=1.4.0
+pkgver=1.3.2.r10.g3b2fc50
 pkgrel=1
 pkgdesc="Run any Windows program through Proton"
 arch=('x86_64')
@@ -12,25 +10,27 @@ license=('GPL3')
 depends=(
   'steam'
   'dxvk'
-  'git'
 )
+makedepends=('git')
+provides=(proton-caller)
 conflicts=(proton-caller)
 
-source=("git+https://github.com/caverym/$__pkgname.git")
+source=("git+https://github.com/caverym/Proton-Caller.git")
 sha256sums=('SKIP')
 
+pkgver() {
+  cd Proton-Caller
+  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
 build() {
   cd Proton-Caller
   make
 }
 
 package() {
-  ls
-  mkdir -p "$pkgdir"/usr/share/licenses/proton-call/
-  mkdir -p "$pkgdir"/usr/bin/
-  mkdir -p "$pkgdir"/usr/share/man/man6/
-  install -g 0 -o 0 $__pkgname/proton-call "$pkgdir"/usr/bin/
-  install -g 0 -o 0 $__pkgname/LICENSE "$pkgdir"/usr/share/licenses/proton-call/
-  install -g 0 -o 0 -m 0644 $__pkgname/manual/proton-call.6 "$pkgdir"/usr/share/man/man6/
-  gzip -f "$pkgdir"/usr/share/man/man6/proton-call.6
+  cd Proton-Caller
+  install -Dm755 proton-call "$pkgdir"/usr/bin/proton-call
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 manual/proton-call.6 "$pkgdir"/usr/share/man/man6/proton-call.6
 }
-- 
2.29.2