updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ipkg-utils / ipkg-utils-050831.destdir.patch
blob8ecf263da1c480b82d6d2252df44383b92356b75
1 diff -urN ipkg-utils-050831.orig/Makefile ipkg-utils-050831/Makefile
2 --- ipkg-utils-050831.orig/Makefile 2004-12-28 16:32:11.000000000 +0100
3 +++ ipkg-utils-050831/Makefile 2007-03-22 18:09:00.000000000 +0100
4 @@ -1,4 +1,5 @@
5 UTILS = ipkg-build ipkg-upload
6 +DESTDIR=
8 PREFIX=/usr/local
10 @@ -11,10 +12,11 @@
11 $(CC) $(CFLAGS) -o ipkg-compare-versions ipkg-compare-versions.c
13 install: ${UTILS}
14 - cp ${UTILS} $(PREFIX)/bin
15 - python setup.py install
16 + mkdir -p $(DESTDIR)$(PREFIX)/bin
17 + cp ${UTILS} $(DESTDIR)$(PREFIX)/bin
18 + python setup.py install --root=$(DESTDIR)
19 chmod agu+rx ipkg-make-index
20 - cp -f ipkg-make-index $(PREFIX)/bin
21 + cp -f ipkg-make-index $(DESTDIR)$(PREFIX)/bin
23 binary: build
24 mkdir -p ipkg-build-binary/usr/bin