initial import
This commit is contained in:
38
gmrun/PKGBUILD
Normal file
38
gmrun/PKGBUILD
Normal file
@@ -0,0 +1,38 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=gmrun
|
||||
pkgver=1.2w
|
||||
pkgrel=1
|
||||
pkgdesc="A simple program which provides a run program window"
|
||||
arch=('x86_64' 'i686')
|
||||
url="https://github.com/wdlkmpx/gmrun/"
|
||||
license=('ISC')
|
||||
depends=('gtk2' 'popt')
|
||||
backup=('etc/gmrunrc')
|
||||
source=("https://github.com/wdlkmpx/${pkgname}/archive/refs/tags/${pkgver}.tar.gz"
|
||||
"libre.patch")
|
||||
sha512sums=('c765e4a0e2c80056ab20600f06eed7038730703a331499b831331311503ecc35628fc1d32380659340bfe12fb295682f106c859b768c37e3b40214185853ee85'
|
||||
'e9303740f2ff6d9357faa24c85515dd7ab6610f8300ed80cca2da8b97f92c7781f962d23ffd85b8f14822c8f05a1f0fcdc316bc8f0ede8d7ade350bf2eb7a8d8')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
patch -p1 -i ${srcdir}/libre.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr/ \
|
||||
--sysconfdir=/etc/ \
|
||||
--enable-gtk2
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR=${pkgdir} install
|
||||
install -Dm644 LICENSE -t ${pkgdir}/usr/share/licenses/$pkgname
|
||||
}
|
||||
31
gmrun/libre.patch
Normal file
31
gmrun/libre.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
--- a/data/gmrunrc 2021-05-08 11:59:21.000000000 +0800
|
||||
+++ b/data/gmrunrc 2021-06-25 17:06:45.019402209 +0800
|
||||
@@ -43,20 +43,21 @@
|
||||
#=======================================================================
|
||||
|
||||
# URL handlers
|
||||
-# If the entered text is "http://www.google.com" then:
|
||||
-# - %u gets replaced with the whole URL ("http://www.google.com")
|
||||
-# - %s gets replaced with "//www.google.com".
|
||||
+# If the entered text is "https://search.disroot.org" then:
|
||||
+# - %u gets replaced with the whole URL ("https://search.disroot.org")
|
||||
+# - %s gets replaced with "//search.disroot.org".
|
||||
# useful for URL's like "man:printf" --> %s becomes printf
|
||||
URL_http = xdg-open '%u'
|
||||
+URL_https = xdg-open '%u'
|
||||
URL_mailto = xdg-email '%u'
|
||||
URL_file = xdg-open '%s'
|
||||
URL_man = ${TermExec} man %s
|
||||
URL_info = ${TermExec} info %s
|
||||
-URL_search = xdg-open 'http://www.google.com/search?q=%s'
|
||||
+URL_search = xdg-open 'https://search.disroot.org/search?q=%s'
|
||||
|
||||
# extension handlers
|
||||
# Customize your own extension handler.
|
||||
# syntax-> EXT:ext,etc = handler '%s'
|
||||
-EXT:doc,rtf,txt,cc,cpp,h,java,html,htm,epl,tex,latex,js,css,xml,xsl,am,ps,pdf = xdg-open '%s'
|
||||
-EXT:mkv,mp4,avi,asf,wmv = xdg-open '%s'
|
||||
-EXT:mp3,flac,ogg,aac,wav = xdg-open '%s'
|
||||
+EXT:txt,odt,doc,docx,rtf,pdf,htm,html,js,css,xml,xsl,tex,latex,ps,am,cc,cpp,h,epl = xdg-open '%s'
|
||||
+EXT:webm,mkv,mp4,avi,asf,wmv = xdg-open '%s'
|
||||
+EXT:opus,ogg,flac,mp3,aac,wav = xdg-open '%s'
|
||||
Reference in New Issue
Block a user