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

Alexander Rødseth arodseth at archlinux.org
Mon Feb 18 13:58:38 UTC 2019


    Date: Monday, February 18, 2019 @ 13:58:36
  Author: arodseth
Revision: 434233

upgpkg: joyutils 1.6.1-1

Modified:
  joyutils/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++------------------------
 1 file changed, 17 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-18 13:06:39 UTC (rev 434232)
+++ PKGBUILD	2019-02-18 13:58:36 UTC (rev 434233)
@@ -1,37 +1,30 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
 # Contributor: Arkham <arkham at archlinux.us>
 # Contributor: dirty_d <andrew2085 at gmail.com>
 
 pkgname=joyutils
-pkgver=1.2.15
-pkgrel=9
+pkgver=1.6.1
+pkgrel=1
 pkgdesc='jscal, jstest, and jsattach utilities for the Linux joystick driver'
-arch=('x86_64')
-url='http://atrey.karlin.mff.cuni.cz/~vojtech/joystick/'
-license=('GPL')
-makedepends=('addinclude')
-conflicts=('linuxconsole')
-source=("ftp://atrey.karlin.mff.cuni.cz/pub/linux/joystick/joystick-$pkgver.tar.gz")
-sha256sums=('532b3ad453824e7932c6b68b59c3a20b8c40f45c13c343d3cb109ca08296716d')
+arch=(x86_64)
+license=(GPL)
+url='https://packages.debian.org/sid/joystick'
+conflicts=(linuxconsole)
+depends=(sdl)
+source=("https://deb.debian.org/debian/pool/main/j/joystick/joystick_$pkgver.orig.tar.bz2")
+sha256sums=('e9d6b05a6c57c7eb3ec7f9f017f46b20e4b55d5a02f930eff1823a13921c5934')
 
+prepare() {
+  sed -i 's,DESTDIR)/lib,DESTDIR)$(PREFIX)/lib,g' \
+    linuxconsoletools-$pkgver/utils/Makefile
+}
+
 build() {
-  cd "joystick-$pkgver"
-
-  addinclude jscal.c stdlib
-  gcc -lm -o jscal jscal.c $CFLAGS
-  gcc -o jstest jstest.c $CFLAGS
-  gcc -o jsattach jsattach.c $CFLAGS
+  make -C linuxconsoletools-$pkgver
 }
 
 package() {
-  cd "joystick-$pkgver"
-
-  install -Dm 755 jscal "$pkgdir/usr/bin/jscal"
-  install -m 755 jstest "$pkgdir/usr/bin/"
-  install -m 755 jsattach "$pkgdir/usr/bin/"
-  install -Dm 644 jscal.1 "$pkgdir/usr/share/man/man1/jscal.1"
-  install -m 644 jstest.1 "$pkgdir/usr/share/man/man1/"
-  install -m 644 jsattach.1 "$pkgdir/usr/share/man/man1/"
+  DESTDIR="$pkgdir" PREFIX=/usr make -C linuxconsoletools-$pkgver install
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list