diff options
author | Colin Keenan | 2015-06-08 17:54:57 -0700 |
---|---|---|
committer | Colin Keenan | 2015-06-08 17:54:57 -0700 |
commit | 50c50592a117e71644bbc18f4a5de00b7d1928b6 (patch) | |
tree | 017c9c15f93ea7853880f0e0304b9dcf8c94791c | |
download | aur-gmv.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | gmv.install | 34 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e3c3a0594af6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = gmv + pkgdesc = GUI for 'mv': Adds 'Move or Rename' to 'open-with' context menu for most files. + pkgver = 1.0 + pkgrel = 4 + url = https://github.com/colinkeenan/gmv + install = gmv.install + arch = any + license = GPL + depends = yad + source = https://raw.githubusercontent.com/colinkeenan/gmv/v1.0/gmv + source = https://raw.githubusercontent.com/colinkeenan/gmv/v1.0/gmv.desktop + md5sums = 7e639e2ae25f0953299fd993fff8e13b + md5sums = a36aea533c86a72e2eec2b7247b31f0e + +pkgname = gmv + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5c11314f36c3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Colin Keenan <colinnkeenan at gmail dot com> + +pkgname=gmv +pkgver=1.0 +pkgrel=4 +pkgdesc="GUI for 'mv': Adds 'Move or Rename' to 'open-with' context menu for most files." +arch=('any') +url="https://github.com/colinkeenan/gmv" +license=('GPL') +depends=('yad') # had to use yad instead of zenity to have default values in forms +install=${pkgname}.install + +source=("https://raw.githubusercontent.com/colinkeenan/${pkgname}/v${pkgver}/${pkgname}" + "https://raw.githubusercontent.com/colinkeenan/${pkgname}/v${pkgver}/${pkgname}.desktop") +md5sums=('7e639e2ae25f0953299fd993fff8e13b' + 'a36aea533c86a72e2eec2b7247b31f0e') + +package() { + install -D -m644 gmv.desktop "$pkgdir/usr/share/applications/gmv.desktop" + install -D -m755 gmv "$pkgdir/usr/bin/gmv" +} diff --git a/gmv.install b/gmv.install new file mode 100644 index 000000000000..82cc38224d59 --- /dev/null +++ b/gmv.install @@ -0,0 +1,34 @@ +# 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)" + +_update() { + msg_blue "Updating desktop MIME database..." + update-desktop-database -q + update-mime-database /usr/share/mime +} + +post_install() { + _update + note "The script is named 'gmv' and the desktop calls it 'Move or Rename'. It should show up as 'Move or Rename' for almost any file on an 'open-with' context menu." +} + + +post_upgrade() { + post_install +} + + +post_remove() { + _update +} |