This repository has been archived on 2024-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-11-30/packages/unmaintained/Makefile

63 lines
2.8 KiB
Makefile
Raw Normal View History

2013-04-01 21:23:32 +02:00
APP=pybitmessage
2016-05-02 16:26:47 +02:00
APPDIR=`basename "\`pwd\`"`
VERSION=0.6.0
2013-07-12 11:36:28 +02:00
RELEASE=1
ARCH_TYPE=`uname -m`
2013-07-23 17:04:44 +02:00
PREFIX?=/usr/local
2014-11-02 14:21:51 +01:00
LIBDIR=lib
2013-04-01 21:23:32 +02:00
all:
debug:
source:
2016-05-02 16:26:47 +02:00
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APPDIR} --exclude-vcs
gzip -f9n ../${APP}_${VERSION}.orig.tar
2013-04-01 21:23:32 +02:00
install:
2013-07-12 11:36:28 +02:00
mkdir -p ${DESTDIR}/usr
2013-07-23 17:04:44 +02:00
mkdir -p ${DESTDIR}${PREFIX}
mkdir -p ${DESTDIR}${PREFIX}/bin
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}.1.gz ${DESTDIR}${PREFIX}/share/man/man1
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/${APP}
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/applications
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/pixmaps
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24/apps
install -m 644 desktop/${APP}.desktop ${DESTDIR}${PREFIX}/share/applications/${APP}.desktop
install -m 644 desktop/icon24.png ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24/apps/${APP}.png
cp -rf src/* ${DESTDIR}${PREFIX}/share/${APP}
echo '#!/bin/sh' > ${DESTDIR}${PREFIX}/bin/${APP}
2014-11-02 14:48:50 +01:00
echo "if [ -d ${PREFIX}/share/${APP} ]; then" >> ${DESTDIR}${PREFIX}/bin/${APP}
echo " cd ${PREFIX}/share/${APP}" >> ${DESTDIR}${PREFIX}/bin/${APP}
2013-07-23 22:20:58 +02:00
echo 'else' >> ${DESTDIR}${PREFIX}/bin/${APP}
2014-11-02 14:48:50 +01:00
echo " cd /usr/share/pybitmessage" >> ${DESTDIR}${PREFIX}/bin/${APP}
echo 'fi' >> ${DESTDIR}${PREFIX}/bin/${APP}
echo 'if [ -d /opt/openssl-compat-bitcoin/lib ]; then' >> ${DESTDIR}${PREFIX}/bin/${APP}
echo ' LD_LIBRARY_PATH="/opt/openssl-compat-bitcoin/lib/" exec python2 bitmessagemain.py' >> ${DESTDIR}${PREFIX}/bin/${APP}
echo 'else' >> ${DESTDIR}${PREFIX}/bin/${APP}
echo ' exec python2 bitmessagemain.py' >> ${DESTDIR}${PREFIX}/bin/${APP}
2013-07-23 22:20:58 +02:00
echo 'fi' >> ${DESTDIR}${PREFIX}/bin/${APP}
2013-07-23 17:04:44 +02:00
chmod +x ${DESTDIR}${PREFIX}/bin/${APP}
2013-07-12 11:36:28 +02:00
uninstall:
2013-07-23 17:04:44 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}.1.gz
rm -rf ${PREFIX}/share/${APP}
rm -f ${PREFIX}/bin/${APP}
rm -f ${PREFIX}/share/applications/${APP}.desktop
rm -f ${PREFIX}/share/icons/hicolor/scalable/apps/${APP}.svg
2013-07-23 22:20:58 +02:00
rm -f ${PREFIX}/share/pixmaps/${APP}.svg
2013-04-01 21:23:32 +02:00
clean:
2013-07-12 11:36:28 +02:00
rm -f ${APP} \#* \.#* gnuplot* *.png debian/*.substvars debian/*.log
rm -fr deb.* debian/${APP} rpmpackage/${ARCH_TYPE}
rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc
2013-07-12 15:03:11 +02:00
rm -f rpmpackage/*.src.rpm archpackage/*.gz archpackage/*.xz
2013-07-23 22:20:58 +02:00
rm -f puppypackage/*.gz puppypackage/*.pet slackpackage/*.txz
2014-11-02 14:21:51 +01:00
sourcedeb:
2016-05-02 16:26:47 +02:00
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APPDIR} --exclude-vcs --exclude 'debian'
2014-11-02 14:21:51 +01:00
gzip -f9n ../${APP}_${VERSION}.orig.tar