diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | tchrome.install | 22 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a60ae6612856 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = tchrome + pkgdesc = Close Chrome browser including background, or launch a version of Google Chrome/Chromium + pkgver = 1.2 + pkgrel = 1 + url = https://github.com/colinkeenan/tchrome + install = tchrome.install + arch = any + license = GPL + source = https://raw.githubusercontent.com/colinkeenan/tchrome/v1.2/tchrome + source = https://raw.githubusercontent.com/colinkeenan/tchrome/v1.2/tchrome.conf + source = https://raw.githubusercontent.com/colinkeenan/tchrome/v1.2/tchrome.desktop + md5sums = 45abeb3edac87aaa0980b48f01172937 + md5sums = 3bab05dbc5357bbe934942503a79c6a3 + md5sums = 7a6ae702e159c102ed888007e0f25358 + +pkgname = tchrome + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9bac8440af81 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Colin Keenan <colinnkeenan at gmail dot com> + +pkgname=tchrome +pkgver=1.2 +pkgrel=1 +pkgdesc="Close Chrome browser including background, or launch a version of Google Chrome/Chromium" +arch=('any') +url="https://github.com/colinkeenan/tchrome" +license=('GPL') +install=${pkgname}.install + +source=(https://raw.githubusercontent.com/colinkeenan/${pkgname}/v${pkgver}/${pkgname} + https://raw.githubusercontent.com/colinkeenan/${pkgname}/v${pkgver}/${pkgname}.conf + https://raw.githubusercontent.com/colinkeenan/${pkgname}/v${pkgver}/${pkgname}.desktop) +md5sums=('45abeb3edac87aaa0980b48f01172937' + '3bab05dbc5357bbe934942503a79c6a3' + '7a6ae702e159c102ed888007e0f25358') + +package() { + install -D -m644 ${pkgname}.conf "$pkgdir/etc/${pkgname}.conf" + install -D -m644 ${pkgname}.desktop "$pkgdir/usr/share/applications/${pkgname}.desktop" + install -D -m755 ${pkgname} "$pkgdir/usr/bin/${pkgname}" +} diff --git a/tchrome.install b/tchrome.install new file mode 100644 index 000000000000..f19d53817061 --- /dev/null +++ b/tchrome.install @@ -0,0 +1,22 @@ +# Some colored makepkg-like functions +msg_blue() { + printf "${BLUE}==>${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n" +} + +note() { + printf "${BLUE}==>${ALL_OFF}${YELLOW} NOTE:${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n" +} + +ALL_OFF="$(tput sgr0)" +BOLD="$(tput bold)" +BLUE="${BOLD}$(tput setaf 4)" +YELLOW="${BOLD}$(tput setaf 3)" + +post_install() { + note "The script is named 'tchrome' and the desktop calls it 'Toggle Chrome (tchrome)'. This is meant to live on a panel in a launcher. Click to close all Chrome windows and background processes, or launch the version of the Chrome Browser specified in /etc/tchrome.conf if not already running. If running the scrip from the command line, make sure it runs from bash." +} + + +post_upgrade() { + post_install +} |