[arch-commits] Commit in vi/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Sun Jun 29 14:05:54 UTC 2014


    Date: Sunday, June 29, 2014 @ 16:05:53
  Author: eric
Revision: 215568

upgpkg: vi 1:050325-4

Rebuild to add mtree file, Add prepare function

Modified:
  vi/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-06-29 13:45:28 UTC (rev 215567)
+++ PKGBUILD	2014-06-29 14:05:53 UTC (rev 215568)
@@ -1,44 +1,43 @@
 # $Id$
-# Maintainer: tobias [ tobias at archlinux org ]
+# Maintainer: Eric Bélanger <eric at archlinux.org>
 
 pkgname=vi
 pkgver=050325
-pkgrel=3
+pkgrel=4
 epoch=1
-pkgdesc='The original ex/vi text editor.'
+pkgdesc="The original ex/vi text editor"
 arch=('i686' 'x86_64')
-url='http://ex-vi.sourceforge.net/'
+url="http://ex-vi.sourceforge.net/"
 license=('custom:ex')
 depends=('ncurses')
 optdepends=('heirloom-mailx: used by the preserve command for notification')
 groups=('base')
-options=(strip emptydirs)
 source=(http://downloads.sourceforge.net/sourceforge/ex-vi/ex-${pkgver}.tar.bz2
         navkeys.patch
         increase-tube.patch
         preserve_dir.patch)
-md5sums=('e668595254233e4d96811083a3e4e2f3'
-         'aac133930047eafa4f28736cfaf976b3'
-         'e596e05a00a24187b576e389fa1de45d'
-         '8c6d3503e7c41a4413145ae49a7f2b80')
+sha1sums=('573501d15fa4be59f136641957c7f893e86bac82'
+          '9ff3e79dd5f4ba29bd439f2c86afbc748c95ec3d'
+          '7039755bf1dd27b4aa5384e76ee52e31d06f9972'
+          'ff399edd106eb0b61cc58f66812c2a2c8ea7670d')
 
-build() {
-  cd "${srcdir}/ex-${pkgver}"
-
+prepare() {
+  cd ex-${pkgver}
   patch -Np1 -i  ../navkeys.patch
   patch -Np0 -i ../increase-tube.patch
   # FS#20653
   patch -Np1 -i ../preserve_dir.patch
+}
 
+build() {
+  cd ex-${pkgver}
   make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex \
       'FEATURES=-DCHDIR -DFASTTAG -DUCVISUAL -DMB -DBIT8' TERMLIB=ncurses
 }
 
 package() {
-  cd "${srcdir}/ex-${pkgver}"
-
+  cd ex-${pkgver}
   make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex INSTALL=/usr/bin/install \
-      DESTDIR="$pkgdir" install
-
+      DESTDIR="${pkgdir}" install
   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }




More information about the arch-commits mailing list