source: externals/epaper-driver/epaper-package@ 3ae92ae

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

Yeah

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/bash
2
3#############
4#
5# Not needed anymore!
6#
7#############
8
9BUILD_DIR=/tmp/epd
10VERSION="0.1"
11
12
13NAME="epd-fuse"
14PACKAGE_SOURCE_NAME="${NAME}-${VERSION}"
15PACKAGE_BINARY_NAME="${NAME}-v230-g2-${VERSION}"
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
25echo "Installing dependencies"
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
27echo "Preparebuild environment"
28mkdir "${BUILD_DIR}"
29cp -a "${SCRIPT_ROOT}/repaper/PlatformWithOS" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
30echo " Create source tarball"
31tar -czf "${BUILD_DIR}/${ORIG_TARBALL}" -C "${BUILD_DIR}" "${PACKAGE_SOURCE_NAME}"
32echo " Copy debian folder into sources"
33cp -a "${SCRIPT_ROOT}/debian" "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}/"
34
35echo "Building the package"
36cd "${BUILD_DIR}/${PACKAGE_SOURCE_NAME}"
37dpkg-buildpackage
38
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
47exit 0
Note: See TracBrowser for help on using the repository browser.