aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: d3411d2ddf8ca6548a28e3350b6a29f8bde022ee (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=r976.f4d9a62
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'
         '7a809c670214bc5b1440c5885ab7ef47'
         '4a06cd509ed479450e36833c6ce2015b'
         '675068a32d70d2d0688b9656e11f5ecb'
         'dcdb3f46c2a7789991b35158e1848b4c'
         'f2f4216145a3d3b6e51cb7a7aba36bf0'
         'aed0049ea0ae8aa39062f4f5f36acc1d'
         'a74cb7e514d2d0a5a130651863b7a715')

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: