summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ced8e65e1ccafab2eb64ea45185ece9859bce2d2 (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
# 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: SirPatrickCZ Fiala456@gmail.com
pkgname="st-spcz-git"
_pkgname="st"
pkgver=0.8.1.r0.g8936abb
pkgrel=1
pkgdesc="Simple terminal emulator by suckless.org with mouse-scroll and alpha patches."
arch=('i686' 'x86_64' 'armv7h' 'armv7l')
url="https://github.com/SirPatrickCZ/st"
license=('MIT')
options=('zipman')
depends=('libxft')
makedepends=('git' 'ncurses' 'libxext')
optdepends=('xorg-fonts-misc')
conflicts=('st')
source=("st::git+https://github.com/SirPatrickCZ/st.git#branch=master")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${_pkgname}"
  # skip terminfo which conflicts with nsurses
  sed -i '/tic /,+1d' Makefile
}

build() {
  cd "$srcdir/$_pkgname"
  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  cd "$srcdir/$_pkgname"
  make PREFIX=/usr DESTDIR="${pkgdir}" TERMINFO="$pkgdir/usr/share/terminfo" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
}