source: externals/epaper-driver/epaper-package@ 6a0b261

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

Working packaging with python module added

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