[arch-commits] Commit in dmenu/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Mon Dec 18 20:06:01 UTC 2017
Date: Monday, December 18, 2017 @ 20:06:01
Author: anthraxx
Revision: 274791
upgpkg: dmenu 4.7-2
Modified:
dmenu/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++------------
1 file changed, 22 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-18 19:54:48 UTC (rev 274790)
+++ PKGBUILD 2017-12-18 20:06:01 UTC (rev 274791)
@@ -1,5 +1,5 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
# Contributor: Thorsten Töpper <atsutane-tu at freethoughts.de>
# Contributor: Thayer Williams <thayer at archlinux.org>
@@ -7,22 +7,32 @@
pkgname=dmenu
pkgver=4.7
-pkgrel=1
-pkgdesc="A generic menu for X"
-url="http://tools.suckless.org/dmenu/"
+pkgrel=2
+pkgdesc='Generic menu for X'
+url='https://tools.suckless.org/dmenu/'
arch=('x86_64')
license=('MIT')
depends=('sh' 'libxinerama' 'libxft' 'freetype2')
-source=("http://dl.suckless.org/tools/dmenu-$pkgver.tar.gz")
-sha256sums=('a75635f8dc2cbc280deecb906ad9b7594c5c31620e4a01ba30dc83984881f7b9')
+source=(https://dl.suckless.org/tools/dmenu-${pkgver}.tar.gz)
+sha512sums=('67a184f3ddb018e7b372e049052662955403e3367639b9c2284939d6f105ae74c995fe38f126d8ff75886831c8add8b50e338a1bfb0d8620b7fb1457cf88a00c')
+prepare() {
+ cd ${pkgname}-${pkgver}
+ echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk
+ echo "CFLAGS+=${CFLAGS}" >> config.mk
+ echo "LDFLAGS+=${LDFLAGS}" >> config.mk
+}
+
build() {
- cd $pkgname-$pkgver
- make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 FREETYPEINC=/usr/include/freetype2
+ cd ${pkgname}-${pkgver}
+ make \
+ X11INC=/usr/include/X11 \
+ X11LIB=/usr/lib/X11 \
+ FREETYPEINC=/usr/include/freetype2
}
package() {
- cd $pkgname-$pkgver
- make PREFIX=/usr DESTDIR="$pkgdir" install
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ cd ${pkgname}-${pkgver}
+ make PREFIX=/usr DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
More information about the arch-commits
mailing list