-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
43 lines (39 loc) · 1.06 KB
/
PKGBUILD
File metadata and controls
43 lines (39 loc) · 1.06 KB
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
# Maintainer: Ashin Antony <ashinant15@gmail.com>
pkgname=st-ashin-git
pkgver=0.8.4.r.
pkgrel=1
pkgdesc="A heavily-patched and customized build of st the Suckless simple terminal from Ashin Antony."
arch=(x86_64)
url="https://github.com/ashincoder/st-ashin.git"
license=('custom MIT:X')
groups=()
depends=(nerd-fonts-jetbrains-mono libx11)
makedepends=(git)
checkdepends=()
optdepends=()
provides=(st)
conflicts=(st)
replaces=()
backup=()
options=()
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()
pkgver() {
cd "${_pkgname}"
printf "0.8.4.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd st-ashin
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd st-ashin
mkdir -p ${pkgdir}/opt/${pkgname}
cp -rf * ${pkgdir}/opt/${pkgname}
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 st.desktop "${pkgdir}/usr/share/applications/st.desktop"
}