diff options
author | Ivan Shapovalov | 2016-05-18 02:38:05 +0300 |
---|---|---|
committer | Ivan Shapovalov | 2016-05-18 02:38:05 +0300 |
commit | 71a63a7be168fb3139fc4f3f02f10a40af588bd6 (patch) | |
tree | da685c14f5c3ff51f5474c7eae18ab9184e7f9fb | |
download | aur-71a63a7be168fb3139fc4f3f02f10a40af588bd6.tar.gz |
Initial commit, PKGBUILD taken from aur-mirror.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..11e77ef9de4c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Tue May 17 23:37:48 UTC 2016 +pkgbase = gedit-trailsave-git + pkgdesc = A plugin for gedit 3 to strip trailing whitespace on save + pkgver = 3.3.0.r6.g0975355 + pkgrel = 1 + url = https://github.com/jonleighton/gedit-trailsave + arch = any + license = GPL + depends = gedit + provides = gedit-trailsave + conflicts = gedit-trailsave + source = git://github.com/jonleighton/gedit-trailsave + sha256sums = SKIP + +pkgname = gedit-trailsave-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d35527d6d625 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Ivan Shapovalov <intelfx@intelfx.name> +# Contributor: Evangelos Foutras <evangelos@foutrelis.com> + +pkgname=gedit-trailsave-git +pkgver=3.3.0.r6.g0975355 +pkgrel=1 +pkgdesc="A plugin for gedit 3 to strip trailing whitespace on save" +arch=('any') +url="https://github.com/jonleighton/gedit-trailsave" +license=('GPL') +depends=('gedit') +source=(git://github.com/jonleighton/gedit-trailsave) +sha256sums=('SKIP') +provides=('gedit-trailsave') +conflicts=('gedit-trailsave') + +function pkgver() { + cd gedit-trailsave + + git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./' +} + +package() { + cd gedit-trailsave + + install -Dm644 -t "$pkgdir/usr/lib/gedit/plugins" \ + trailsave.{plugin,py} + + # Compile Python scripts + python -m compileall "$pkgdir" + python -O -m compileall "$pkgdir" +} + +# vim:set ts=2 sw=2 et: |