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

Levente Polyak anthraxx at archlinux.org
Mon Dec 18 00:03:56 UTC 2017


    Date: Monday, December 18, 2017 @ 00:03:46
  Author: anthraxx
Revision: 274698

upgpkg: dzen2 0.9.5.14.488ab66-1

Modified:
  dzen2/trunk/PKGBUILD

----------+
 PKGBUILD |   58 ++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 32 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-17 23:28:17 UTC (rev 274697)
+++ PKGBUILD	2017-12-18 00:03:46 UTC (rev 274698)
@@ -1,44 +1,50 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Mark Taylor <skymt0 at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Mark Taylor <skymt0 at gmail.com>
 
 pkgname=dzen2
-pkgver=0.9.5git
+pkgver=0.9.5.14.488ab66
 _commit=488ab66019f475e35e067646621827c18a879ba1
-pkgrel=6
-arch=(x86_64)
-pkgdesc="X notification utility"
-url="https://github.com/robm/dzen"
-license=("MIT")
+pkgrel=1
+pkgdesc='General purpose messaging, notification and menuing program for X11'
+url='https://github.com/robm/dzen'
+arch=('x86_64')
+license=('MIT')
 depends=('libx11' 'libxpm' 'libxinerama' 'libxft')
-makedepends=('gcc' 'git')
-source=("$pkgname-$pkgver::git://github.com/robm/dzen#commit=${_commit}")
-md5sums=('SKIP')
+makedepends=('git')
+source=(${pkgname}::"git+https://github.com/robm/dzen#commit=${_commit}")
+sha512sums=('SKIP')
 
+pkgver() {
+  cd ${pkgname}
+  printf "%s.%s.%s" "$(grep 'VERSION = ' config.mk|cut -d' ' -f3|cut -d- -f1)" \
+    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
 prepare() {
-  cd "$srcdir"/$pkgname-$pkgver
+  cd ${pkgname}
   sed -i 's|DZEN_XMP|DZEN_XPM|g' main.c
 
-  CFLAGS="$CFLAGS -Wall -Os \${INCS} -DVERSION=\\\"\${VERSION}\\\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`"
+  CFLAGS="${CFLAGS} -Wall -Os \${INCS} -DVERSION=\\\"\${VERSION}\\\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`"
   LIBS=" -L/usr/lib -lc -lXft -lXpm -lXinerama -lX11"
 
-  echo "CFLAGS=$CFLAGS" >>config.mk
-  echo "LIBS=$LIBS" >>config.mk
-  echo "LDFLAGS=$LDFLAGS $LIBS" >>config.mk
+  echo "CFLAGS=${CFLAGS}" >> config.mk
+  echo "LIBS=${LIBS}" >> config.mk
+  echo "LDFLAGS=${LDFLAGS} ${LIBS}" >> config.mk
 }
 
 build() {
-  cd "$srcdir"/$pkgname-$pkgver
+  cd ${pkgname}
   make X11INC=/usr/include X11LIB=/usr/lib
-  (cd gadgets && make X11INC=/usr/include X11LIB=/usr/lib)
+  make -C gadgets X11INC=/usr/include X11LIB=/usr/lib
 }
 
 package() {
-  cd "$srcdir"/$pkgname-$pkgver
-  make PREFIX=/usr MANPREFIX=/usr/man DESTDIR="$pkgdir" install
-  (cd gadgets && make PREFIX=/usr MANPREFIX=/usr/man DESTDIR="$pkgdir" install)
-  install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/dzen2/COPYING
+  cd ${pkgname}
+  make PREFIX=/usr MANPREFIX=/usr/man DESTDIR="${pkgdir}" install
+  make -C gadgets PREFIX=/usr MANPREFIX=/usr/man DESTDIR="${pkgdir}" install
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README* -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
 
-  install -dm0755 "$pkgdir"/usr/share/doc/dzen2
-  install -m0644 README* "$pkgdir"/usr/share/doc/dzen2/
-}
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list