source: externals/epaper-driver/epaper-package@ 9be4f3f

0.5 app-cordova debian/bullseye debian/jessie
Last change on this file since 9be4f3f was 1d2acb7, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago

Added patch to repaper packaging, to switch to systemd on jessie and later

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/bash
2
3BUILD_DIR=/tmp/epd
4VERSION="0.1"
5
6
7NAME="epd-fuse"
8PACKAGE_SOURCE_NAME="${NAME}-${VERSION}"
9PACKAGE_BINARY_NAME="${NAME}-v230-g2-${VERSION}"
10ORIG_TARBALL="${NAME}_${VERSION}.orig.tar.gz"
11SCRIPT_ROOT=$(dirname `dirname $0`)
12
13set -e
14
15if [ -d "${BUILD_DIR}" ]; then
16 rm -R "${BUILD_DIR}"
17fi
18
19echo "Installing dependencies"
20sudo apt-get install debhelper lsb-release dh-python dh-systemd python-all python3-all python-all-dbg python3-all-dbg python-setuptools python3-setuptools python-support python-pil
21echo "Preparebuild environment"
22mkdir "${BUILD_DIR}"
23cp -a "${SCRIPT_ROOT}/repaper/PlatformWithOS" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
24echo " Create source tarball"
25tar -czf "${BUILD_DIR}/${ORIG_TARBALL}" -C "${BUILD_DIR}" "${PACKAGE_SOURCE_NAME}"
26echo " Copy debian folder into sources"
27cp -a "${SCRIPT_ROOT}/debian" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}/"
28
29echo "Building the package"
30cd "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
31dpkg-buildpackage
32
33echo "Checking the package"
34set +e
35for entry in "${BUILD_DIR}"/*.deb; do
36 echo " Running lintian for package ${entry}"
37 lintian "$entry"
38done
39set -e
40
41exit 0
Note: See TracBrowser for help on using the repository browser.