aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/my_st/PKGBUILD
blob: c01e1811ab6928af6088246ed6eb86b93e08d715 (plain) (blame)
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
55
# Maintainer: Jose Riha <jose1711 gmail com>
# Maintainer: Sebastian J. Bronner <waschtl@sbronner.com>
# Contributor: Patrick Jackson <PatrickSJackson gmail com>
# Contributor: Christoph Vigano <mail@cvigano.de>

pkgname=st
pkgver=0.9
pkgrel=3
pkgdesc='A simple virtual terminal emulator for X.'
arch=('i686' 'x86_64' 'armv7h')
license=('MIT')
depends=(libxft otf-inconsolata-lgc)
url=https://st.suckless.org
source=(https://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz
        config.h.patch
        config.h.hidpi.patch
        opacity.patch
        dracula.patch
        prefer_dark.patch)
sha256sums=('f36359799734eae785becb374063f0be833cf22f88b4f169cd251b99324e08e7'
            'e25f9b5a6ce3b8926ef42e30f6f15541b481e1a5966b3766b5e75971e398ad2e'
            'd2a288a8fd67af6a0b63582b10f45ebdc8069a2de05f5e6ace24ce90337adfca'
            '8a35d948e1fe604ddbda8c77f6c26b3f5a2d6787596bb6264b3d99152a4e2148'
            'e2f21962e9171485fe6858284e267f604ac5242d1d91a966fcb0568cace53070'
            '44dedc716a06381510eb1dd92d621dd82d69c4b8e95b037bc70935d43ecaea4b')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  # skip terminfo which conflicts with ncurses
  sed -i '/tic /d' Makefile
  sed -i '/@echo .* terminfo/d' Makefile

  echo '  -> config.h.patch'
  patch -i ../config.h.patch
  #echo '  -> config.h.hidpi.patch'
  #patch -i ../config.h.hidpi.patch
  #echo '  -> opacity.patch'
  #patch -i ../opacity.patch
  echo '  -> dracula.patch'
  patch -i ../dracula.patch
  echo '  -> prefer_dark.patch'
  patch -i ../prefer_dark.patch
}

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

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