source: externals/epaper-driver/epaper-package@ 748a227

debian/bullseye debian/jessie
Last change on this file since 748a227 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
RevLine 
[1d41a9f]1#!/bin/bash
2
3BUILD_DIR=/tmp/epd
4VERSION="0.1"
5
6
[ced5dfd]7NAME="epd-fuse"
8PACKAGE_SOURCE_NAME="${NAME}-${VERSION}"
9PACKAGE_BINARY_NAME="${NAME}-v230-g2-${VERSION}"
[1d41a9f]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
[ed749dc]19echo "Installing dependencies"
[1d2acb7]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
[1d41a9f]21echo "Preparebuild environment"
22mkdir "${BUILD_DIR}"
[ced5dfd]23cp -a "${SCRIPT_ROOT}/repaper/PlatformWithOS" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
[1d41a9f]24echo " Create source tarball"
[ced5dfd]25tar -czf "${BUILD_DIR}/${ORIG_TARBALL}" -C "${BUILD_DIR}" "${PACKAGE_SOURCE_NAME}"
[1d41a9f]26echo " Copy debian folder into sources"
[ced5dfd]27cp -a "${SCRIPT_ROOT}/debian" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}/"
[1d41a9f]28
29echo "Building the package"
[ced5dfd]30cd "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
[1d41a9f]31dpkg-buildpackage
32
[cfc7d1d]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
[1d41a9f]41exit 0
Note: See TracBrowser for help on using the repository browser.