aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: f8611dee4b3059b498b57712c1fa4033d7691ce3 (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
47
48
49
50
51
52
53
54
# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk>
_pkgname=st-me
pkgname="${_pkgname}-git"
pkgver=r972.5b67fd9
pkgrel=1
pkgdesc="This is a custom release of the Suckless Terminal with a few patches and extras"
arch=('x86_64' 'i686')
url="http://st.suckless.org/"
license=('MIT')
depends=('libxft' 'libxext')
makedepends=('ncurses')
conflicts=('st')
source=('Makefile'
        'config.mk'
        'config.def.h'
        'arg.h'
        'st.c'
        'st.1'
        'st.info'
        'LICENSE'
        'README.md')
md5sums=('896bfea38b9959e5167b56ef76a6ac4b'
         'afe2afef8c754a3a8e2cffb05b718614'
         'e9eb81dab17343173f3ed3ebfd8f53d3'
         '4a06cd509ed479450e36833c6ce2015b'
         '6247759f6181bfde2311612aa0d5f8da'
         'dcdb3f46c2a7789991b35158e1848b4c'
         'f2f4216145a3d3b6e51cb7a7aba36bf0'
         'aed0049ea0ae8aa39062f4f5f36acc1d'
         '282bed92d6f4872b606e4a2c48ed5d68')

pkgver() {
  ## Assume we are in the repo...
  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd ${srcdir}
  sed -i '/\@tic /d' Makefile
}

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

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

# vim: ts=2 sw=2 et: