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

Maxime Gauduin alucryd at archlinux.org
Mon Jun 3 08:05:37 UTC 2019


    Date: Monday, June 3, 2019 @ 08:05:37
  Author: alucryd
Revision: 476696

upgpkg: lib32-libnewt 0.52.21-1

Modified:
  lib32-libnewt/trunk/PKGBUILD

----------+
 PKGBUILD |   45 ++++++++++++++++++++++++++++-----------------
 1 file changed, 28 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-03 07:57:04 UTC (rev 476695)
+++ PKGBUILD	2019-06-03 08:05:37 UTC (rev 476696)
@@ -6,35 +6,46 @@
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=lib32-libnewt
-pkgver=0.52.20
-pkgrel=2
+pkgver=0.52.21
+pkgrel=1
 pkgdesc="Not Erik's Windowing Toolkit - text mode windowing with slang"
-arch=('x86_64')
-url='https://fedorahosted.org/newt/'
-license=('GPL')
-depends=('lib32-glibc' 'lib32-gpm' 'lib32-popt' 'lib32-slang' 'libnewt')
-makedepends=('gcc-multilib' 'lib32-tcl')
+arch=(x86_64)
+url=https://fedorahosted.org/newt/
+license=(GPL)
+depends=(
+  lib32-glibc
+  lib32-gpm
+  lib32-popt
+  lib32-slang
+  libnewt
+)
+makedepends=(
+  git
+  lib32-tcl
+)
 optdepends=('lib32-tcl: whiptcl support')
-options=('!makeflags')
-source=("https://releases.pagure.org/newt/newt-${pkgver}.tar.gz")
-sha256sums=('8d66ba6beffc3f786d4ccfee9d2b43d93484680ef8db9397a4fb70b5adbb6dbc')
+options=(!makeflags)
+source=(git+https://pagure.io/newt.git#tag=r${pkgver//./-})
+sha256sums=(SKIP)
 
 prepare() {
-  cd newt-${pkgver}
+  cd newt
 
-  sed -i "s:tcl8.4:tcl8.6:" Makefile.in
+  sed -i 's/tcl8.4/tcl8.6/' Makefile.in
   echo '#define USE_INTERP_RESULT 1' >> config.h
+
+  autoreconf -fiv
 }
 
 build() {
-  cd newt-${pkgver}
+  cd newt
 
   export CC='gcc -m32'
-  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
 
   ./configure \
-    --prefix='/usr' \
-    --libdir='/usr/lib32' \
+    --prefix=/usr \
+    --libdir=/usr/lib32 \
     --with-gpm-support \
     --without-python
   make
@@ -41,7 +52,7 @@
 }
 
 package() {
-  cd newt-${pkgver}
+  cd newt
 
   make DESTDIR="${pkgdir}" install
   rm -rf "${pkgdir}"/usr/{bin,include,share}


More information about the arch-commits mailing list