forked from CachyOS/CachyOS-PKGBUILDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
33 lines (30 loc) · 1.01 KB
/
PKGBUILD
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
# Maintainer: Vladislav Nepogodin (vnepogodin) <[email protected]>
pkgname=cachyos-st-config
pkgver=0.8.5
pkgrel=3
pkgdesc='CachyOS ST'
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
license=('MIT')
depends=(libxft libxcursor fontconfig harfbuzz ttf-hack ttf-fira-code ttf-jetbrains-mono)
makedepends=('git')
url="https://github.com/cachyos/$pkgname"
_commit=92664bd9598047d9d41558aea2966e7fac4a0c30
source=(git+$url.git#commit=${_commit})
sha256sums=('SKIP')
provides=('st')
conflicts=('st')
_sourcedir=cachyos-st-config
_makeopts="--directory=$_sourcedir"
build() {
make $_makeopts X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
local installopts='--mode 0644 -D --target-directory'
local shrdir="$pkgdir/usr/share"
local licdir="$shrdir/licenses/st"
local docdir="$shrdir/doc/st"
make $_makeopts PREFIX=/usr DESTDIR="$pkgdir" install
install $installopts "$licdir" "$_sourcedir/LICENSE"
install $installopts "$docdir" "$_sourcedir/README"
install $installopts "$shrdir/st" "$_sourcedir/st.info"
}