auto-st


Logs | Files | LICENSE | LICENSE | GitLab


1
commit 811e28d69d49b51f99178ebc5b1e6aadf72ab606
2
Author: Connor Etherington <[email protected]>
3
Date:   Wed Mar 2 21:11:53 2022 +0200
4
5
    Update.
6
---
7
 PKGBUILD | 46 +++++++++++++++++++++++++---------------------
8
 1 file changed, 25 insertions(+), 21 deletions(-)
9
10
diff --git a/PKGBUILD b/PKGBUILD
11
index 0735176..f22fd1d 100644
12
--- a/PKGBUILD
13
+++ b/PKGBUILD
14
@@ -1,42 +1,46 @@
15
-
16
-pkgname=concise-st
17
-_pkgname=st
18
-pkgver=0.8.2.r1062.2087ab9
19
+# Maintainer: Connor Etherington <[email protected]>
20
+# ---
21
+_pkgbase=st
22
+pkgname=concisest
23
+pkgver=1.0
24
 pkgrel=1
25
-epoch=1
26
-pkgdesc="Concise fork of the suckless st terminal inspired by luke smith. "
27
-url='https://git.concise.cc/st'
28
-arch=('i686' 'x86_64')
29
+pkgdesc="Concise Build of Suckless Simple Terminal"
30
+arch=('x86_64')
31
+url="https://gitlab.com/qYp/${_pkgbase}"
32
 license=('MIT')
33
 options=('zipman')
34
 depends=('libxft')
35
 makedepends=('ncurses' 'libxext' 'git')
36
-optdepends=('dmenu: feed urls to dmenu')
37
-source=('https://git.concise.cc/st')
38
-sha1sums=('SKIP')
39
-
40
-provides=("${_pkgname}")
41
-conflicts=("${_pkgname}")
42
+optdepends=(
43
+    'dmenu: feed urls to dmenu'
44
+    'libcurl: for curl'
45
+  )
46
+provides=(st)
47
+conflicts=(st)
48
+replaces=(st)
49
+backup=(usr/bin/st.bak)
50
+source=("git+$url.git")
51
+md5sums=('SKIP')
52
 
53
 pkgver() {
54
-	cd "${_pkgname}"
55
-	printf "%s.r%s.%s" "$(awk '/^VERSION =/ {print $3}' config.mk)" \
56
-		"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
57
+  cd "${_pkgbase}"
58
+  printf "1.0.""$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
59
 }
60
 
61
 prepare() {
62
-	cd $srcdir/${_pkgname}
63
+	cd $srcdir/${_pkgbase}
64
 	sed -i '/tic /d' Makefile
65
 }
66
 
67
 build() {
68
-	cd "${_pkgname}"
69
+	cd "${_pkgbase}"
70
 	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
71
 }
72
 
73
 package() {
74
-	cd "${_pkgname}"
75
-	make PREFIX=/usr DESTDIR="${pkgdir}" install
76
+	cd "${_pkgbase}"
77
+	make PREFIX=/usr DESTDIR="${pkgdir}" clean install
78
 	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
79
+	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
80
 	install -Dm644 Xdefaults "${pkgdir}/usr/share/doc/${pkgname}/Xdefaults.example"
81
 }