summaryrefslogtreecommitdiff
path: root/libre/cool-retro-term
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-06-01 03:35:43 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-06-01 03:35:43 -0300
commitf49ff0feb587c6d08786ff220d700ce54add2f7d (patch)
tree9da7ae2b1cf06b890136cfaaaa0566130391d2e4 /libre/cool-retro-term
parent04a66161d64d690f4a89c8a2ff5a0c15f4bbb81a (diff)
downloadabslibre-f49ff0feb587c6d08786ff220d700ce54add2f7d.tar.gz
abslibre-f49ff0feb587c6d08786ff220d700ce54add2f7d.tar.bz2
abslibre-f49ff0feb587c6d08786ff220d700ce54add2f7d.zip
cool-retro-term: add new package to [libre] -> https://labs.parabola.nu/issues/730
Diffstat (limited to 'libre/cool-retro-term')
-rw-r--r--libre/cool-retro-term/PKGBUILD49
-rw-r--r--libre/cool-retro-term/cool-retro-term.install12
2 files changed, 61 insertions, 0 deletions
diff --git a/libre/cool-retro-term/PKGBUILD b/libre/cool-retro-term/PKGBUILD
new file mode 100644
index 000000000..e480d3f06
--- /dev/null
+++ b/libre/cool-retro-term/PKGBUILD
@@ -0,0 +1,49 @@
+# 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@parabola.nu>
+
+pkgname=cool-retro-term
+pkgver=1.0.0
+pkgrel=2.parabola1
+pkgdesc='A good looking terminal emulator which mimics the old cathode display, without nonfree fonts'
+arch=('i686' 'x86_64')
+url='https://github.com/Swordfish90/cool-retro-term'
+license=('GPL3')
+depends=('qmltermwidget' 'qt5-quickcontrols' 'qt5-graphicaleffects' 'hicolor-icon-theme')
+install=$pkgname.install
+mksource=("https://github.com/Swordfish90/cool-retro-term/archive/v$pkgver.tar.gz")
+source=("https://repo.parabola.nu/other/cool-retro-term-libre/cool-retro-term-libre-$pkgver.tar.gz")
+mksha256sums=('db799084680545b6961e1b3d1bb7ff0cb8105e82279fe734c2c07c32525350d9')
+sha256sums=('a59fb6ead92d02873dc0d423c5a60c43bcc48a732b7616f8aef76f1f5f2bd357')
+
+mksource() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ rm -rv app/qml/fonts/{1977-{apple2,commodore-pet},1982-commodore64,modern-envy-code-r}
+}
+
+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
+}
diff --git a/libre/cool-retro-term/cool-retro-term.install b/libre/cool-retro-term/cool-retro-term.install
new file mode 100644
index 000000000..2771fcd65
--- /dev/null
+++ b/libre/cool-retro-term/cool-retro-term.install
@@ -0,0 +1,12 @@
+post_install() {
+ [[ -x /usr/bin/xdg-icon-resource ]] && xdg-icon-resource forceupdate --theme hicolor || \
+ ( [[ -x /usr/bin/gtk-update-icon-cache ]] && gtk-update-icon-cache )
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}