pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/teamspeak-client Add PKG_DESTDIR_SUPPORT, plus fix...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c0dbd57f02d
branches:  trunk
changeset: 554192:9c0dbd57f02d
user:      abs <abs%pkgsrc.org@localhost>
date:      Tue Feb 10 12:07:21 2009 +0000

description:
Add PKG_DESTDIR_SUPPORT, plus fix permissions on installed wav files

diffstat:

 net/teamspeak-client/Makefile |  28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diffs (44 lines):

diff -r 419d2f2776a0 -r 9c0dbd57f02d net/teamspeak-client/Makefile
--- a/net/teamspeak-client/Makefile     Tue Feb 10 12:01:04 2009 +0000
+++ b/net/teamspeak-client/Makefile     Tue Feb 10 12:07:21 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/07/29 05:19:47 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2009/02/10 12:07:21 abs Exp $
 
 PKGNAME=               teamspeak-client-2.0.32.60
 DISTNAME=              ts2_client_rc2_2032
@@ -30,21 +30,21 @@
        ${SED} "s|%installdir%|${LIB_DIR}|" ${WRKSRC}/TeamSpeak \
                                                > ${WRKDIR}/TeamSpeak
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+INSTALLATION_DIRS=     bin ${LIB_DIR}/sounds ${DOC_DIR}
+
 do-install:
-       ${INSTALL_SCRIPT} ${WRKDIR}/TeamSpeak ${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${LIB_DIR}
-       ${INSTALL_DATA_DIR} ${LIB_DIR}/sounds
-       ${INSTALL_LIB} ${WRKSRC}/TeamSpeak.bin ${LIB_DIR}
-       ${INSTALL_LIB} ${WRKSRC}/icon.xpm ${LIB_DIR}
-       ${INSTALL_LIB} ${WRKSRC}/sounds/* ${LIB_DIR}/sounds
-       ${INSTALL_LIB} ${WRKSRC}/*.so* ${LIB_DIR}
-       ${INSTALL_DATA_DIR} ${DOC_DIR}
-       ${INSTALL_DATA} -m 644 ${WRKSRC}/Readme.txt ${DOC_DIR}
-       ${INSTALL_DATA} -m 644 ${WRKSRC}/clicense.txt ${DOC_DIR}
-       ${INSTALL_DATA} -m 644 ${WRKSRC}/manual/* ${DOC_DIR}
+       ${INSTALL_SCRIPT} ${WRKDIR}/TeamSpeak ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_LIB} ${WRKSRC}/TeamSpeak.bin ${DESTDIR}${LIB_DIR}
+       ${INSTALL_DATA} ${WRKSRC}/icon.xpm ${DESTDIR}${LIB_DIR}
+       ${INSTALL_DATA} ${WRKSRC}/sounds/* ${DESTDIR}${LIB_DIR}/sounds
+       ${INSTALL_LIB} ${WRKSRC}/*.so* ${DESTDIR}${LIB_DIR}
+       ${INSTALL_DATA} -m 644 ${WRKSRC}/Readme.txt ${DESTDIR}${DOC_DIR}
+       ${INSTALL_DATA} -m 644 ${WRKSRC}/clicense.txt ${DESTDIR}${DOC_DIR}
+       ${INSTALL_DATA} -m 644 ${WRKSRC}/manual/* ${DESTDIR}${DOC_DIR}
        ${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
-       (cd ${PREFIX}; ${FIND} lib/teamspeak-client share/doc/teamspeak-client -type f -print ) >> ${PLIST_SRC}
-       (cd ${PREFIX}; ${FIND} lib/teamspeak-client share/doc/teamspeak-client -type d -print ) | ${SED} 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
+       (cd ${DESTDIR}${PREFIX}; ${FIND} lib/teamspeak-client share/doc/teamspeak-client -type f -print ) >> ${PLIST_SRC}
+       (cd ${DESTDIR}${PREFIX}; ${FIND} lib/teamspeak-client share/doc/teamspeak-client -type d -print ) | ${SED} 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
 
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index