source: externals/epaper-driver/epaper-package@ 265ba2b

debian/bullseye
Last change on this file since 265ba2b was 9b55b08, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago

Yeah

  • Property mode set to 100755
File size: 1.2 KB
RevLine 
[1d41a9f]1#!/bin/bash
2
[9b55b08]3#############
4#
5# Not needed anymore!
6#
7#############
8
[1d41a9f]9BUILD_DIR=/tmp/epd
10VERSION="0.1"
11
12
[ced5dfd]13NAME="epd-fuse"
14PACKAGE_SOURCE_NAME="${NAME}-${VERSION}"
15PACKAGE_BINARY_NAME="${NAME}-v230-g2-${VERSION}"
[1d41a9f]16ORIG_TARBALL="${NAME}_${VERSION}.orig.tar.gz"
17SCRIPT_ROOT=$(dirname `dirname $0`)
18
19set -e
20
21if [ -d "${BUILD_DIR}" ]; then
22 rm -R "${BUILD_DIR}"
23fi
24
[ed749dc]25echo "Installing dependencies"
[1d2acb7]26sudo 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]27echo "Preparebuild environment"
28mkdir "${BUILD_DIR}"
[ced5dfd]29cp -a "${SCRIPT_ROOT}/repaper/PlatformWithOS" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
[1d41a9f]30echo " Create source tarball"
[ced5dfd]31tar -czf "${BUILD_DIR}/${ORIG_TARBALL}" -C "${BUILD_DIR}" "${PACKAGE_SOURCE_NAME}"
[1d41a9f]32echo " Copy debian folder into sources"
[ced5dfd]33cp -a "${SCRIPT_ROOT}/debian" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}/"
[1d41a9f]34
35echo "Building the package"
[ced5dfd]36cd "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
[1d41a9f]37dpkg-buildpackage
38
[cfc7d1d]39echo "Checking the package"
40set +e
41for entry in "${BUILD_DIR}"/*.deb; do
42 echo " Running lintian for package ${entry}"
43 lintian "$entry"
44done
45set -e
46
[1d41a9f]47exit 0
Note: See TracBrowser for help on using the repository browser.