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

Andreas Radke andyrtr at nymeria.archlinux.org
Sat Nov 2 10:02:41 UTC 2013


    Date: Saturday, November 2, 2013 @ 11:02:41
  Author: andyrtr
Revision: 198728

upgpkg: libxshmfence 1.0-1

upstream update 1.0 - initially packaged for Arch

Added:
  libxshmfence/trunk/COPYING
Modified:
  libxshmfence/trunk/PKGBUILD

----------+
 COPYING  |   21 ++++++++++++++++++++
 PKGBUILD |   62 ++++++++++++++++++++++++++-----------------------------------
 2 files changed, 48 insertions(+), 35 deletions(-)

Added: COPYING
===================================================================
--- COPYING	                        (rev 0)
+++ COPYING	2013-11-02 10:02:41 UTC (rev 198728)
@@ -0,0 +1,21 @@
+/*
+ * Copyright © 2013 Keith Packard
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that copyright
+ * notice and this permission notice appear in supporting documentation, and
+ * that the name of the copyright holders not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission.  The copyright holders make no representations
+ * about the suitability of this software for any purpose.  It is provided "as
+ * is" without express or implied warranty.
+ *
+ * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THIS SOFTWARE.
+ */

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-11-02 10:00:23 UTC (rev 198727)
+++ PKGBUILD	2013-11-02 10:02:41 UTC (rev 198728)
@@ -1,51 +1,43 @@
-# This is an example PKGBUILD file. Use this as a start to creating your own,
-# and remove these comments. For more information, see 'man PKGBUILD'.
-# NOTE: Please fill out the license field for your package! If it is unknown,
-# then please put 'unknown'.
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
 
-# Maintainer: Your Name <youremail at domain.com>
-pkgname=NAME
-pkgver=VERSION
+pkgname=libxshmfence
+pkgver=1.0
 pkgrel=1
-epoch=
-pkgdesc=""
-arch=()
-url=""
+pkgdesc="a library that exposes a event API on top of Linux futexes"
+arch=('i686' 'x86_64')
+url="http://xorg.freedesktop.org/"
 license=('GPL')
-groups=()
-depends=()
-makedepends=()
-checkdepends=()
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
-source=($pkgname-$pkgver.tar.gz
-        $pkgname-$pkgver.patch)
-noextract=()
-md5sums=() #generate with 'makepkg -g'
+#groups=()
+depends=('glibc')
+makedepends=('xorg-util-macros')
+source=(${url}/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2
+        COPYING)
+sha256sums=('625089553939baa20e665873a6c8f3d694cfde78fb3110aa59da92fd2b14f14f'
+            '5e46864ede2fda46c3cb7cfe3a7b9f9e4bd36d8d21d8010a284caa64b81d465a')
 
-prepare() {
-	cd "$srcdir/$pkgname-$pkgver"
-	patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
-}
-
 build() {
-	cd "$srcdir/$pkgname-$pkgver"
+	cd $pkgname-$pkgver
+	
+	# fix some libtools errors
+	autoreconf -vfi
+	
 	./configure --prefix=/usr
 	make
 }
 
 check() {
-	cd "$srcdir/$pkgname-$pkgver"
+	cd $pkgname-$pkgver
 	make -k check
 }
 
 package() {
-	cd "$srcdir/$pkgname-$pkgver"
+	cd $pkgname-$pkgver
 	make DESTDIR="$pkgdir/" install
+	
+    # license is still missing
+    # COPYING is taken from top of /usr/include/X11/xshmfence.h
+    install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+    install -m644 ${srcdir}/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+
 }




More information about the arch-commits mailing list