diff options
author | Azurata | 2019-06-20 22:08:52 +0100 |
---|---|---|
committer | Azurata | 2019-06-20 22:08:52 +0100 |
commit | 5c28a971780c3d7762d552cf5327303afafe7ff6 (patch) | |
tree | fcd8a6cba4e46e838bb73ff079e784309190b26a | |
download | aur-5c28a971780c3d7762d552cf5327303afafe7ff6.tar.gz |
new package
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..40f45046a4a1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = gedit-open-uri-context-menu-git + pkgdesc = Gedit plugin that adds context menu item to open an URI at the pointer position. + pkgver = r40.fcb008b + pkgrel = 1 + url = https://github.com/jpfleury/open-uri-context-menu + arch = any + license = GPL3 + depends = gedit + source = git+https://github.com/jpfleury/open-uri-context-menu.git + sha256sums = SKIP + +pkgname = gedit-open-uri-context-menu-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d408037f4760 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +_pkgname=open-uri-context-menu +pkgname=gedit-$_pkgname-git +pkgver=r40.fcb008b +pkgrel=1 +pkgdesc="Gedit plugin that adds context menu item to open an URI at the pointer position." +arch=("any") +url="https://github.com/jpfleury/$_pkgname" +depends=("gedit") +source=("git+$url.git") +sha256sums=('SKIP') +license=("GPL3") +_plugindir="/usr/lib/gedit/plugins/" + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$_pkgname" + mkdir -p "$pkgdir/$_plugindir" + install -Dm644 $_pkgname.{plugin,py} "$pkgdir/$_plugindir" + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |