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

Caleb Maclennan alerque at gemini.archlinux.org
Tue Sep 14 20:11:31 UTC 2021


    Date: Tuesday, September 14, 2021 @ 20:11:30
  Author: alerque
Revision: 1014866

upgpkg: awesome 4.3-3; adopt and restyle, package man pages

Closes FS#61998

Modified:
  awesome/trunk/PKGBUILD

----------+
 PKGBUILD |   81 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 50 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-14 20:08:34 UTC (rev 1014865)
+++ PKGBUILD	2021-09-14 20:11:30 UTC (rev 1014866)
@@ -1,4 +1,5 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
 # Contributor: Andrea Scarpino <andrea at archlinux.org>
 # Contributor: Sébastien Luttringer
@@ -8,50 +9,68 @@
 
 pkgname=awesome
 pkgver=4.3
-pkgrel=2
+pkgrel=3
 pkgdesc='Highly configurable framework window manager'
-url='https://awesomewm.org/'
-arch=('x86_64')
-license=('GPL2')
-depends=('cairo' 'dbus' 'gdk-pixbuf2' 'imlib2' 'libxdg-basedir' 'lua53' 'lua53-lgi' 'pango'
-         'startup-notification' 'xcb-util-cursor' 'xcb-util-keysyms' 'xcb-util-wm'
-         'xorg-xmessage' 'libxkbcommon-x11' 'libxkbcommon' 'xcb-util-xrm')
-makedepends=('asciidoc' 'cmake' 'docbook-xsl' 'doxygen' 'imagemagick' 'ldoc' 'xmlto' 'ttf-font')
+url='https://awesomewm.org'
+arch=(x86_64)
+license=(GPL2)
+depends=(cairo
+         dbus
+         gdk-pixbuf2
+         imlib2
+         libxdg-basedir
+         libxkbcommon
+         libxkbcommon-x11
+         lua53
+         lua53-lgi
+         pango
+         startup-notification
+         xcb-util-cursor
+         xcb-util-keysyms
+         xcb-util-wm
+         xcb-util-xrm
+         xorg-xmessage)
+makedepends=(asciidoctor
+             cmake
+             docbook-xsl
+             doxygen
+             imagemagick
+             ldoc
+             ttf-font
+             xmlto)
 optdepends=('rlwrap: readline support for awesome-client'
             'dex: autostart your desktop files'
             'vicious: widgets for the Awesome window manager')
-provides=('notification-daemon')
+provides=(notification-daemon)
 backup=('etc/xdg/awesome/rc.lua')
-source=(https://github.com/awesomeWM/awesome/releases/download/v${pkgver}/awesome-${pkgver}.tar.xz{,.asc})
+_archive="$pkgname-$pkgver"
+source=("https://github.com/awesomeWM/awesome/releases/download/v$pkgver/$_archive.tar.xz"{,.asc})
 sha512sums=('c5ef1e8dc593e7783b895d22143154aea8f211beeda24672a7ee4ed5112b4f4284043f848a151f3d3c4f569e91308670367a4353f705b20511b36495b22fa3f5'
             'SKIP')
 validpgpkeys=('2BB32F88FF3D1E76E682303F22E428EBCB8FCB06') # Uli Schlachter <psychon at znc.in>
 
 prepare() {
-  cd ${pkgname}-${pkgver}
-  sed -i 's/COMMAND lua /COMMAND lua5.3 /' awesomeConfig.cmake
-  sed -i 's| lua | lua5.3 |;s/lua)/lua5.3)/' tests/examples/CMakeLists.txt
-  sed -i '1s|/usr/bin/env lua$|/usr/bin/env lua5.3|' build-utils/check_for_invalid_requires.lua
-  sed -i 's/"lua"/"lua5.3"/' tests/test-spawn.lua
-  mkdir -p build
+	cd "$_archive"
+	sed -i 's/COMMAND lua /COMMAND lua5.3 /' awesomeConfig.cmake
+	sed -i 's| lua | lua5.3 |;s/lua)/lua5.3)/' tests/examples/CMakeLists.txt
+	sed -i '1s|/usr/bin/env lua$|/usr/bin/env lua5.3|' build-utils/check_for_invalid_requires.lua
+	sed -i 's/"lua"/"lua5.3"/' tests/test-spawn.lua
 }
 
 build() {
-  cd ${pkgname}-${pkgver}/build
-  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
-  cmake .. \
-    -DCMAKE_BUILD_TYPE=RELEASE \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DSYSCONFDIR=/etc \
-    -DLUA_LIBRARY=/usr/lib/liblua5.3.so \
-    -DLUA_INCLUDE_DIR=/usr/include/lua5.3
-  make
+	cd "$_archive"
+	CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+	cmake -B build \
+		-DCMAKE_BUILD_TYPE=RELEASE \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DSYSCONFDIR=/etc \
+		-DLUA_LIBRARY=/usr/lib/liblua5.3.so \
+		-DLUA_INCLUDE_DIR=/usr/include/lua5.3
+	make -C build
 }
 
 package() {
-  cd ${pkgname}-${pkgver}
-  make -C build DESTDIR="${pkgdir}" install
-  install -Dm 644 awesome.desktop -t "${pkgdir}/usr/share/xsessions"
+	cd "$_archive"
+	make -C build DESTDIR="$pkgdir" install
+	install -Dm0644 -t "$pkgdir/usr/share/xsessions/" awesome.desktop
 }
-
-# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list