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