[arch-commits] Commit in source-highlight/repos (6 files)

Felix Yan fyan at archlinux.org
Tue Nov 4 14:57:54 UTC 2014


    Date: Tuesday, November 4, 2014 @ 15:57:54
  Author: fyan
Revision: 225620

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  source-highlight/repos/staging-i686/
  source-highlight/repos/staging-i686/PKGBUILD
    (from rev 225619, source-highlight/trunk/PKGBUILD)
  source-highlight/repos/staging-i686/source-highlight.install
    (from rev 225619, source-highlight/trunk/source-highlight.install)
  source-highlight/repos/staging-x86_64/
  source-highlight/repos/staging-x86_64/PKGBUILD
    (from rev 225619, source-highlight/trunk/PKGBUILD)
  source-highlight/repos/staging-x86_64/source-highlight.install
    (from rev 225619, source-highlight/trunk/source-highlight.install)

-----------------------------------------+
 staging-i686/PKGBUILD                   |   34 ++++++++++++++++++++++++++++++
 staging-i686/source-highlight.install   |   18 +++++++++++++++
 staging-x86_64/PKGBUILD                 |   34 ++++++++++++++++++++++++++++++
 staging-x86_64/source-highlight.install |   18 +++++++++++++++
 4 files changed, 104 insertions(+)

Copied: source-highlight/repos/staging-i686/PKGBUILD (from rev 225619, source-highlight/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2014-11-04 14:57:54 UTC (rev 225620)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=source-highlight
+pkgver=3.1.7
+pkgrel=11
+pkgdesc="Convert source code to syntax highlighted document"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/src-highlite/"
+license=('GPL')
+depends=('bash' 'boost-libs')
+makedepends=('ctags' 'boost')
+install=$pkgname.install
+source=("ftp://ftp.gnu.org/gnu/src-highlite/${pkgname}-${pkgver}.tar.gz")
+md5sums=('0ff81588d3536b4c4e571122ba940595')
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc \
+              --with-bash-completion=/usr/share/bash-completion/completions
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make prefix="${pkgdir}/usr" bash_completiondir="${pkgdir}/usr/share/bash-completion/completions" install
+
+  # PKGBUILD syntax highlighting
+  echo -e "\npkgbuild = sh.lang" >> "${pkgdir}"/usr/share/${pkgname}/lang.map
+}

Copied: source-highlight/repos/staging-i686/source-highlight.install (from rev 225619, source-highlight/trunk/source-highlight.install)
===================================================================
--- staging-i686/source-highlight.install	                        (rev 0)
+++ staging-i686/source-highlight.install	2014-11-04 14:57:54 UTC (rev 225620)
@@ -0,0 +1,18 @@
+info_dir=usr/share/info
+info_files=(source-highlight.info source-highlight-lib.info)
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+	post_install
+}
+
+pre_remove() {
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}

Copied: source-highlight/repos/staging-x86_64/PKGBUILD (from rev 225619, source-highlight/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2014-11-04 14:57:54 UTC (rev 225620)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=source-highlight
+pkgver=3.1.7
+pkgrel=11
+pkgdesc="Convert source code to syntax highlighted document"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/src-highlite/"
+license=('GPL')
+depends=('bash' 'boost-libs')
+makedepends=('ctags' 'boost')
+install=$pkgname.install
+source=("ftp://ftp.gnu.org/gnu/src-highlite/${pkgname}-${pkgver}.tar.gz")
+md5sums=('0ff81588d3536b4c4e571122ba940595')
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc \
+              --with-bash-completion=/usr/share/bash-completion/completions
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make prefix="${pkgdir}/usr" bash_completiondir="${pkgdir}/usr/share/bash-completion/completions" install
+
+  # PKGBUILD syntax highlighting
+  echo -e "\npkgbuild = sh.lang" >> "${pkgdir}"/usr/share/${pkgname}/lang.map
+}

Copied: source-highlight/repos/staging-x86_64/source-highlight.install (from rev 225619, source-highlight/trunk/source-highlight.install)
===================================================================
--- staging-x86_64/source-highlight.install	                        (rev 0)
+++ staging-x86_64/source-highlight.install	2014-11-04 14:57:54 UTC (rev 225620)
@@ -0,0 +1,18 @@
+info_dir=usr/share/info
+info_files=(source-highlight.info source-highlight-lib.info)
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+	post_install
+}
+
+pre_remove() {
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}


More information about the arch-commits mailing list