web2desk


Logs | Files | LICENSE | GitLab


1
commit 8028e0118fd4e44864ff95976947cf11a1b26d68
2
Author: Connor Etherington <[email protected]>
3
Date:   Fri Mar 17 23:38:35 2023 +0200
4
5
    Auto-Commit Update - 20230317
6
---
7
 PKGBUILD | 10 ++++------
8
 1 file changed, 4 insertions(+), 6 deletions(-)
9
10
diff --git a/PKGBUILD b/PKGBUILD
11
index b1a7b1f..55f7df2 100644
12
--- a/PKGBUILD
13
+++ b/PKGBUILD
14
@@ -23,11 +23,9 @@ md5sums=(
15
 validpgpkeys=('81BACEEBC3EA26E127166E4A819BB92A9A48160E')
16
 
17
 package() {
18
-  cd "$srcdir"
19
-  mkdir -p "$pkgdir/usr/bin"
20
-  mkdir -p "$pkgdir/usr/share/$pkgname"
21
-  install -Dm755 "$pkgname/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
22
-  install -Dm644 "$pkgname/usr/share/licenses/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
23
-  cp -r "$pkgname/usr/share/$pkgname" "$pkgdir/usr/share/$pkgname"
24
+  cd "$srcdir/${pkgname}" 2>/dev/null || cd "$srcdir" 2>/dev/null
25
+  install -Dm755 "usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
26
+  install -Dm644 "usr/share/licenses/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
27
+  cp -r "usr/share/$pkgname" "$pkgdir/usr/share/$pkgname"
28
 }
29