From 24f0aa15b6d1ed98123ccf1fe9b4f439c37ef036 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 22 Apr 2014 13:50:42 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- emacs-scala-mode (not maintaining)/PKGBUILD | 28 +++++++++++++++++++++ .../emacs_scala_mode.install | 5 ++++ emacs-scala-mode (not maintaining)/watch- | 19 ++++++++++++++ emacs-scala-mode/PKGBUILD | 28 --------------------- emacs-scala-mode/emacs_scala_mode.install | 5 ---- emacs-scala-mode/watch | 19 -------------- python3-xlib (not maintaining)/PKGBUILD | 29 ++++++++++++++++++++++ .../python3-xlib.install | 20 +++++++++++++++ python3-xlib/PKGBUILD | 29 ---------------------- python3-xlib/python3-xlib.install | 20 --------------- 10 files changed, 101 insertions(+), 101 deletions(-) create mode 100644 emacs-scala-mode (not maintaining)/PKGBUILD create mode 100644 emacs-scala-mode (not maintaining)/emacs_scala_mode.install create mode 100644 emacs-scala-mode (not maintaining)/watch- delete mode 100644 emacs-scala-mode/PKGBUILD delete mode 100644 emacs-scala-mode/emacs_scala_mode.install delete mode 100755 emacs-scala-mode/watch create mode 100644 python3-xlib (not maintaining)/PKGBUILD create mode 100644 python3-xlib (not maintaining)/python3-xlib.install delete mode 100644 python3-xlib/PKGBUILD delete mode 100644 python3-xlib/python3-xlib.install diff --git a/emacs-scala-mode (not maintaining)/PKGBUILD b/emacs-scala-mode (not maintaining)/PKGBUILD new file mode 100644 index 0000000..cd93128 --- /dev/null +++ b/emacs-scala-mode (not maintaining)/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +# Contributor: Sylvain HENRY +# Contributor: Jeff Bowman + +pkgname=emacs-scala-mode +pkgver=2.10.2 +pkgrel=1 +pkgdesc="Scala-mode for emacs" +arch=('any') +url="http://www.scala-lang.org" +license=('custom') +depends=('emacs') +makedepends=('make') +source=(http://www.scala-lang.org/downloads/distrib/files/scala-tool-support-${pkgver}.tgz) +md5sums=('57d6618074b0e0421aa528830f47b0dd') +install=emacs_scala_mode.install + +build() { + cd "$srcdir/scala-tool-support-${pkgver}/scala-emacs-mode" + make +} + +package() { + cd "$srcdir/scala-tool-support-${pkgver}/scala-emacs-mode" + mkdir -p "${pkgdir}/usr/share/emacs/scala-mode" + install -m0644 *.elc "${pkgdir}/usr/share/emacs/scala-mode/" +} + diff --git a/emacs-scala-mode (not maintaining)/emacs_scala_mode.install b/emacs-scala-mode (not maintaining)/emacs_scala_mode.install new file mode 100644 index 0000000..d70c89a --- /dev/null +++ b/emacs-scala-mode (not maintaining)/emacs_scala_mode.install @@ -0,0 +1,5 @@ +post_install() { + echo "Add the following lines to your ~/.emacs file:" + echo "(add-to-list 'load-path \"/usr/share/emacs/scala-mode\")" + echo "(require 'scala-mode-auto)" +} diff --git a/emacs-scala-mode (not maintaining)/watch- b/emacs-scala-mode (not maintaining)/watch- new file mode 100644 index 0000000..2422906 --- /dev/null +++ b/emacs-scala-mode (not maintaining)/watch- @@ -0,0 +1,19 @@ +#!/bin/sh + +wget http://www.scala-lang.org/downloads -O - 2>/dev/null | grep -Po 'scala-tool-support-.+>' | head -n 2 > release + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum release > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'emacs-scala-mode' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'emacs-scala-mode (unfetchable)' +fi + diff --git a/emacs-scala-mode/PKGBUILD b/emacs-scala-mode/PKGBUILD deleted file mode 100644 index cd93128..0000000 --- a/emacs-scala-mode/PKGBUILD +++ /dev/null @@ -1,28 +0,0 @@ -# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> -# Contributor: Sylvain HENRY -# Contributor: Jeff Bowman - -pkgname=emacs-scala-mode -pkgver=2.10.2 -pkgrel=1 -pkgdesc="Scala-mode for emacs" -arch=('any') -url="http://www.scala-lang.org" -license=('custom') -depends=('emacs') -makedepends=('make') -source=(http://www.scala-lang.org/downloads/distrib/files/scala-tool-support-${pkgver}.tgz) -md5sums=('57d6618074b0e0421aa528830f47b0dd') -install=emacs_scala_mode.install - -build() { - cd "$srcdir/scala-tool-support-${pkgver}/scala-emacs-mode" - make -} - -package() { - cd "$srcdir/scala-tool-support-${pkgver}/scala-emacs-mode" - mkdir -p "${pkgdir}/usr/share/emacs/scala-mode" - install -m0644 *.elc "${pkgdir}/usr/share/emacs/scala-mode/" -} - diff --git a/emacs-scala-mode/emacs_scala_mode.install b/emacs-scala-mode/emacs_scala_mode.install deleted file mode 100644 index d70c89a..0000000 --- a/emacs-scala-mode/emacs_scala_mode.install +++ /dev/null @@ -1,5 +0,0 @@ -post_install() { - echo "Add the following lines to your ~/.emacs file:" - echo "(add-to-list 'load-path \"/usr/share/emacs/scala-mode\")" - echo "(require 'scala-mode-auto)" -} diff --git a/emacs-scala-mode/watch b/emacs-scala-mode/watch deleted file mode 100755 index 2422906..0000000 --- a/emacs-scala-mode/watch +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -wget http://www.scala-lang.org/downloads -O - 2>/dev/null | grep -Po 'scala-tool-support-.+>' | head -n 2 > release - -if [ $? = 0 ]; then - [ -f unfetchable ] && rm unfetchable - md5sum release > new-sum - touch sum - if [ "$(cat sum)" = "$(cat new-sum)" ]; then - rm new-sum - else - mv new-sum sum - echo 'emacs-scala-mode' - fi -elif [ ! -f unfetchable ]; then - touch unfetchable - echo 'emacs-scala-mode (unfetchable)' -fi - diff --git a/python3-xlib (not maintaining)/PKGBUILD b/python3-xlib (not maintaining)/PKGBUILD new file mode 100644 index 0000000..1063a1b --- /dev/null +++ b/python3-xlib (not maintaining)/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=python3-xlib +pkgver=0.14 +_commit=894729e50431e02939e44c92533fc292b6c69783 +pkgrel=2 +pkgdesc='Python 3 port of Xlib' +arch=(any) +url='https://github.com/LiuLang/python3-xlib' +license=('GPL2') +depends=('python') +makedepends=('python') +conflicts=('python-xlib') +install=python3-xlib.install +source=("${url}/archive/${_commit}.tar.gz") +sha256sums=('0fe9b2430f30cd90b6bf6cd457db218c5cabb1a7e5f81744ea36a80e90938274') + + +build() { + cd "${srcdir}/${pkgname}-${_commit}/doc" + make info +} + +package() { + cd "${srcdir}/${pkgname}-${_commit}" + install -Dm644 doc/info/python-xlib.info "${pkgdir}/usr/share/info/python-xlib.info" + install -dm755 "${pkgdir}/usr/share/python-xlib" + cp -a examples "${pkgdir}/usr/share/python-xlib/examples" + python setup.py install --prefix=/usr --root="$pkgdir" +} + diff --git a/python3-xlib (not maintaining)/python3-xlib.install b/python3-xlib (not maintaining)/python3-xlib.install new file mode 100644 index 0000000..64a3f36 --- /dev/null +++ b/python3-xlib (not maintaining)/python3-xlib.install @@ -0,0 +1,20 @@ +_file="python-xlib" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + diff --git a/python3-xlib/PKGBUILD b/python3-xlib/PKGBUILD deleted file mode 100644 index 1063a1b..0000000 --- a/python3-xlib/PKGBUILD +++ /dev/null @@ -1,29 +0,0 @@ -pkgname=python3-xlib -pkgver=0.14 -_commit=894729e50431e02939e44c92533fc292b6c69783 -pkgrel=2 -pkgdesc='Python 3 port of Xlib' -arch=(any) -url='https://github.com/LiuLang/python3-xlib' -license=('GPL2') -depends=('python') -makedepends=('python') -conflicts=('python-xlib') -install=python3-xlib.install -source=("${url}/archive/${_commit}.tar.gz") -sha256sums=('0fe9b2430f30cd90b6bf6cd457db218c5cabb1a7e5f81744ea36a80e90938274') - - -build() { - cd "${srcdir}/${pkgname}-${_commit}/doc" - make info -} - -package() { - cd "${srcdir}/${pkgname}-${_commit}" - install -Dm644 doc/info/python-xlib.info "${pkgdir}/usr/share/info/python-xlib.info" - install -dm755 "${pkgdir}/usr/share/python-xlib" - cp -a examples "${pkgdir}/usr/share/python-xlib/examples" - python setup.py install --prefix=/usr --root="$pkgdir" -} - diff --git a/python3-xlib/python3-xlib.install b/python3-xlib/python3-xlib.install deleted file mode 100644 index 64a3f36..0000000 --- a/python3-xlib/python3-xlib.install +++ /dev/null @@ -1,20 +0,0 @@ -_file="python-xlib" - -infodir="usr/share/info" -file="${_file}.info" - - -post_install() { - [[ -x "usr/bin/install-info" ]] || return 0 - install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null -} - -post_upgrade() { - post_install "$1" -} - -pre_remove() { - [[ -x "usr/bin/install-info" ]] || return 0 - install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null -} - -- cgit v1.2.3-70-g09d2