libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

commit b39a8f11aadfc211d03cc0975bd6396a4f314ca3
parent c33be74e6f6da8c6398c1a05821a9601f882a118
Author: Kris Maglione <kris@suckless.org>
Date:   Wed, 23 Jun 2010 10:47:51 -0400

Add PKGBUILD. Fix some install problems.

Diffstat:
PKGBUILD | 28++++++++++++++++++++++++++++
mk/hdr.mk | 1+
mk/man.mk | 4++--
3 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD @@ -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 --git a/mk/hdr.mk b/mk/hdr.mk @@ -98,6 +98,7 @@ INSTALL= _install() { set -e; \ 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 --git a/mk/man.mk b/mk/man.mk @@ -19,9 +19,9 @@ MANLOOP = \ 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:'