summaryrefslogtreecommitdiff
path: root/libre/cool-retro-term/PKGBUILD
blob: 4f53a3b3c1b4b55efd8e93010dd70f19b4e98e57 (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
# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor (Arch): Doug Newgard <scimmia at archlinux dot info>
# Contributor (Arch): Andrey Mivrenik <gim at fastmail dot fm>
# Contributor (Arch): Glen Oakley <goakley123@gmail.com>
# Maintainer: André Silva <emulatorman@hyperbola.info>

pkgname=cool-retro-term
pkgver=1.0.1
pkgrel=1.parabola1
pkgdesc='A good looking terminal emulator which mimics the old cathode display, without nonfree fonts'
arch=('i686' 'x86_64' 'armv7h')
url='https://github.com/Swordfish90/cool-retro-term'
license=('GPL3')
depends=('qmltermwidget' 'qt5-quickcontrols' 'qt5-graphicaleffects' 'hicolor-icon-theme')
mksource=("https://github.com/Swordfish90/cool-retro-term/archive/$pkgver.tar.gz")
source=("https://repo.parabola.nu/other/cool-retro-term-libre/cool-retro-term-libre-$pkgver.tar.gz")
mksha256sums=('45cd756c61bb6ee3ae7796f221da8d2b137e47f00c3d24839d0ac01ed19a6b42')
sha256sums=('9bc8e23ac33dea077e84247e067548bfb78db29ab0fc361de65c4df780bd16dc')

mksource() {
  cd "$srcdir/$pkgname-$pkgver"

  rm -rv app/qml/fonts/{1977-{apple2,commodore-pet},1982-commodore64}
}

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  sed -i '/qmltermwidget/d' cool-retro-term.pro
  sed -i '/1977-apple2/d
          /1977-commodore-pet/d
          /1982-commodore64/d
          /modern-envy-code-r/d
         ' app/qml/resources.qrc
}

build() {
  cd "$srcdir/$pkgname-$pkgver"

  qmake
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make INSTALL_ROOT="$pkgdir" install
}