[hackers] [libixp] Add PKGBUILD. Fix some install problems. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Wed, 23 Jun 2010 14:48:53 +0000 (UTC)

changeset: 132:4acacb2353c0
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Wed Jun 23 10:47:51 2010 -0400
files: PKGBUILD mk/hdr.mk mk/man.mk
description:
Add PKGBUILD. Fix some install problems.

diff -r 70b0c5d22f75 -r 4acacb2353c0 PKGBUILD
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PKGBUILD Wed Jun 23 10:47:51 2010 -0400
@@ -0,0 +1,28 @@
+
+pkgname="libixp-hg"
+pkgver=131
+pkgrel=1
+pkgdesc="The latest hg pull of libixp, a simple 9P filesystem library"
+url="http://libs.suckless.org/libixp"
+license=("MIT")
+arch=("i686" "x86_64")
+makedepends=("mercurial")
+provides=("libixp")
+conflicts=("libixp")
+source=()
+
+FORCE_VER=$(hg log -r . --template {rev})
+
+build()
+{
+ cd $startdir
+ flags=(PREFIX=/usr \
+ ETC=/etc \
+ DESTDIR="$pkgdir")
+
+ make "${flags[@]}" || return 1
+ make "${flags[@]}" install || return 1
+
+ install -m644 -D ./LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
diff -r 70b0c5d22f75 -r 4acacb2353c0 mk/hdr.mk
--- a/mk/hdr.mk Fri Jun 18 12:15:18 2010 -0400
+++ b/mk/hdr.mk Wed Jun 23 10:47:51 2010 -0400
@@ -98,6 +98,7 @@
                  if [ ! -d $$d ]; then echo MKDIR $$3; mkdir -p $$d; fi; \
                  echo INSTALL $$($(CLEANNAME) $(BASE)$$2); \
                  [ -n "$(noisycc)" ] && set -x; \
+ rm -f $$f; \
                  if [ "$$dashb" = -b ]; \
                  then cp -f $$2 $$f; \
                  else $(FILTER) <$$2 >$$f; \
diff -r 70b0c5d22f75 -r 4acacb2353c0 mk/man.mk
--- a/mk/man.mk Fri Jun 18 12:15:18 2010 -0400
+++ b/mk/man.mk Wed Jun 23 10:47:51 2010 -0400
@@ -19,9 +19,9 @@
                 done; \
         done
 maninstall:
- _() { echo LN $$1 $${2##*/}; ln -sf $$1 $$2; }; $(MANLOOP)
+ _() { echo LN $$1 $${2##*/}; ln -sf $$1 $(DESTDIR)$$2; }; $(MANLOOP)
 manuninstall:
- _() { echo RM $${2##*/}; rm -f $$2; }; $(MANLOOP)
+ _() { echo RM $${2##*/}; rm -f $(DESTDIR)$$2; }; $(MANLOOP)
 
 printinstall:
         echo 'Install directories:'
Received on Wed Jun 23 2010 - 14:48:53 UTC

This archive was generated by hypermail 2.2.0 : Wed Jun 23 2010 - 15:00:08 UTC