[arch-commits] Commit in pdcurses/repos/community-x86_64 (PKGBUILD PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Sep 9 10:04:59 UTC 2019


    Date: Monday, September 9, 2019 @ 10:04:58
  Author: arodseth
Revision: 509092

archrelease: copy trunk to community-x86_64

Added:
  pdcurses/repos/community-x86_64/PKGBUILD
    (from rev 509090, pdcurses/trunk/PKGBUILD)
Deleted:
  pdcurses/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   84 ++++++++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 56 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-09 10:04:57 UTC (rev 509091)
+++ PKGBUILD	2019-09-09 10:04:58 UTC (rev 509092)
@@ -1,28 +0,0 @@
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
-# Contributor: Serge Ziryukin <ftrvxmtrx at gmail.com>
-
-pkgname=pdcurses
-pkgver=3.9
-pkgrel=1
-pkgdesc='Cross-platform curses implementation'
-arch=(x86_64)
-url='https://pdcurses.org/'
-license=(GPL)
-depends=(libxpm xaw3d)
-source=("$pkgname-$pkgver.tgz::https://github.com/wmcbrine/PDCurses/archive/$pkgver.tar.gz")
-options=(staticlibs)
-sha256sums=('590dbe0f5835f66992df096d3602d0271103f90cf8557a5d124f693c2b40d7ec')
-
-build() {
-  cd PDCurses-$pkgver/x11
-  ./configure --prefix=/usr --enable-widec --enable-xim --with-xaw3d --with-x
-  make
-}
-
-package() {
-  cd PDCurses-$pkgver/x11
-  make prefix="$pkgdir/usr" install
-}
-
-# getver: raw.githubusercontent.com/wmcbrine/PDCurses/master/curses.h
-# vim: ts=2 sw=2 et:

Copied: pdcurses/repos/community-x86_64/PKGBUILD (from rev 509090, pdcurses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-09 10:04:58 UTC (rev 509092)
@@ -0,0 +1,56 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Serge Ziryukin <ftrvxmtrx at gmail.com>
+
+pkgname=pdcurses
+pkgver=3.9
+pkgrel=1
+pkgdesc='Cross-platform curses implementation'
+arch=(x86_64)
+url='https://pdcurses.org/'
+license=(GPL)
+makedepends=(sdl sdl2 libxpm xaw3d)
+source=("$pkgname-$pkgver.tgz::https://github.com/wmcbrine/PDCurses/archive/$pkgver.tar.gz")
+options=(staticlibs)
+sha256sums=('590dbe0f5835f66992df096d3602d0271103f90cf8557a5d124f693c2b40d7ec')
+
+build() {
+  export CFLAGS="$CFLAGS -fPIC"
+
+  # X11
+  cd PDCurses-$pkgver/x11
+  ./configure --prefix=/usr --enable-widec --with-xaw3d --with-x
+  make
+  gcc $CFLAGS $LDFLAGS -shared -o libXCurses.so *.o
+
+  # SDL1
+  cd ../sdl1
+  make
+  gcc $CFLAGS $LDFLAGS -shared -o pdcurses.so *.o
+
+  # SDL2
+  cd ../sdl2
+  make
+  gcc $CFLAGS $LDFLAGS -shared -o pdcurses2.so *.o
+}
+
+package() {
+  # X11
+  cd PDCurses-$pkgver/x11
+  make prefix="$pkgdir/usr" install
+  cd ..
+  install -Dm644 curspriv.h "$pkgdir/usr/include/curspriv.h"
+
+  # SDL1, compatible with asciiportal
+  install -Dm644 sdl1/pdcsdl.h "$pkgdir/usr/include/pdcsdl.h"
+  install -Dm644 sdl1/pdcurses.so "$pkgdir/usr/lib/libpdcurses.so"
+
+  # SDL2, incompatible with asciiportal
+  install -Dm644 sdl2/pdcsdl.h "$pkgdir/usr/include/pdcsdl2.h"
+  install -Dm644 sdl2/pdcurses2.so "$pkgdir/usr/lib/libpdcurses2.so"
+
+  # Only keep shared libraries
+  rm -f "$pkgdir/usr/lib/libXCurses.a"
+}
+
+# getver: raw.githubusercontent.com/wmcbrine/PDCurses/master/curses.h
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list