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/debian/rules

67 lines
1.7 KiB
Plaintext
Raw Normal View History

2013-04-01 21:23:32 +02:00
#!/usr/bin/make -f
APP=pybitmessage
2013-06-30 17:16:41 +02:00
DESTDIR=${CURDIR}/debian/${APP}
DEST_SHARE=${DESTDIR}/usr/share
DEST_APP=${DEST_SHARE}/${APP}
2013-04-01 21:23:32 +02:00
build: build-stamp
make
2013-06-30 17:16:41 +02:00
build-arch: build-stamp
build-indep: build-stamp
2013-04-01 21:23:32 +02:00
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
2013-06-30 17:16:41 +02:00
install:
2013-04-01 21:23:32 +02:00
dh_testdir
dh_testroot
dh_prep
2013-06-30 17:16:41 +02:00
dh_clean -k
2013-04-01 21:23:32 +02:00
dh_installdirs
2013-06-30 17:16:41 +02:00
mkdir -m 755 -p ${DESTDIR}/usr/bin
mkdir -m 755 -p ${DEST_APP}
mkdir -m 755 -p ${DEST_SHARE}/applications
mkdir -m 755 -p ${DEST_APP}/images
mkdir -m 755 -p ${DEST_APP}/pyelliptic
mkdir -m 755 -p ${DEST_APP}/socks
mkdir -m 755 -p ${DEST_APP}/bitmessageqt
mkdir -m 755 -p ${DEST_APP}/translations
mkdir -m 755 -p ${DEST_SHARE}/pixmaps
mkdir -m 755 -p ${DEST_SHARE}/icons
mkdir -m 755 -p ${DEST_SHARE}/icons/hicolor
mkdir -m 755 -p ${DEST_SHARE}/icons/hicolor/scalable
mkdir -m 755 -p ${DEST_SHARE}/icons/hicolor/scalable/apps
mkdir -m 755 -p ${DEST_SHARE}/icons/hicolor/24x24
mkdir -m 755 -p ${DEST_SHARE}/icons/hicolor/24x24/apps
2013-04-01 21:23:32 +02:00
2013-06-30 17:16:41 +02:00
cp -r src/* ${DEST_APP}
install -m 755 debian/pybm ${DESTDIR}/usr/bin/${APP}
2013-04-01 21:23:32 +02:00
2013-06-30 17:16:41 +02:00
install -m 644 desktop/${APP}.desktop ${DEST_SHARE}/applications/${APP}.desktop
install -m 644 src/images/can-icon-24px.png ${DEST_SHARE}/icons/hicolor/24x24/apps/${APP}.png
install -m 644 desktop/can-icon.svg ${DEST_SHARE}/icons/hicolor/scalable/apps/${APP}.svg
install -m 644 desktop/can-icon.svg ${DEST_SHARE}/pixmaps/${APP}.svg
2013-04-01 21:23:32 +02:00
binary-indep: build install
dh_shlibdeps
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
# dh_installman
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: build install
2013-06-30 17:16:41 +02:00
binary: binary-indep binary-arch
2013-04-01 21:23:32 +02:00
.PHONY: build clean binary-indep binary install