[pacman-dev] [PATCH 1/2] Add a Makefile.

Loui Chang louipc.ist at gmail.com
Wed Jun 24 09:59:49 EDT 2009


Use the Makefile to help ensure that /etc/srcpac.d is created, rather
than relying on the PKGBUILD, since the program requires it.

Signed-off-by: Loui Chang <louipc.ist at gmail.com>
---
 Makefile |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f7cf055
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+all:
+
+install: all
+	install -d ${DESTDIR}/etc/srcpac.d
+	install -d ${DESTDIR}/usr/bin
+	install -d ${DESTDIR}/usr/share/man/man1
+	install -m 755 srcpac ${DESTDIR}/usr/bin
+	install -m 644 srcpac.1 ${DESTDIR}/usr/share/man/man1
-- 
1.6.3.3



More information about the pacman-dev mailing list