summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f7f3d9722d1123b16c9bdfc003c7d9ccc4c5620 (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
# Maintainer: picokan <todaysoracle@protonmail.com>

pkgname=st-sane-defaults
_pkgname=st
pkgver=0.8.2
pkgrel=8
pkgdesc='A simple terminal emulator, with configurations fit for the average user.'
arch=('i686' 'x86_64' 'armv7h')
license=('MIT')
depends=(libxft)
url=https://st.suckless.org
source=(https://dl.suckless.org/$_pkgname/$_pkgname-$pkgver.tar.gz
		sane-defaults-patch.diff
		st-sane-defaults.desktop)
sha256sums=('aeb74e10aa11ed364e1bcc635a81a523119093e63befd2f231f8b0705b15bf35'
            '13eff7da227d0e895d3167d9052f4b9e315a7556aca3bbdfffea229382c712b7'
            '17924fbac300031b0f8b0bbbf85d18c4637a78e7260350714d4062d64783d46d')
provides=("st")
conflicts=("st")

prepare() {
  patch -d "$srcdir/$_pkgname-$pkgver" < sane-defaults-patch.diff
}

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  sed -i '/tic /d' Makefile
  make
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  install -Dm644 st.info $pkgdir/usr/share/$pkgname/st.info
  cd ..
  install -Dm644 st-sane-defaults.desktop $pkgdir/usr/share/applications/st-sane-defaults.desktop
}