blob: faca677f2a8582dad681e140aff81c4d2e87c1e4 (
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
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: HackMe <hackme.any@protonmail.com>
pkgname=st-hackme
pkgver=1.0.r2.63f29cf
pkgrel=1
pkgdesc="This is my build of ST"
arch=(x86_64)
url="https://github.com/HackMEAny/simple_terminal.git"
license=('MIT')
depends=()
makedepends=(git make)
checkdepends=()
optdepends=()
provides=(st)
source=("git+$url")
md5sums=('SKIP')
prepare() {
cd "simple_terminal"
cp config.def.h config.h
}
pkgver() {
cd "simple_terminal"
printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "simple_terminal"
make
}
package() {
cd "simple_terminal"
make PREFIX=/usr DESTDIR="$pkgdir" install
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
install -m644 -D README "$pkgdir/usr/share/doc/$_pkgname/README"
# Source codes
install -m644 -D -t "$pkgdir/usr/src/st" \
arg.h config.def.h config.mk FAQ LEGACY LICENSE \
Makefile README st.1 st.c st.h st.info TODO win.h x.c
}
|