Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | debian makedeb is ready |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
5e9105912d7601e231403b008d6d3df3 |
| User & Date: | jmcclure@crunch 2014-05-30 17:01:16 |
Context
|
2014-05-30
| ||
| 17:38 | array -> strings check-in: 3688a48cd4 user: jesse@mccluresk9.com tags: trunk | |
| 17:01 | debian makedeb is ready check-in: 5e9105912d user: jmcclure@crunch tags: trunk | |
| 17:00 | no error on existing dir check-in: 56fc79d6b4 user: jmcclure@crunch tags: trunk | |
Changes
Changes to pkg/debian/DEBBUILD.
1 2 3 4 5 6 7 | maintainer="jessse@mccluresk9.com" pkgname="fex" pkgver="2" pkgrel=1 pkgdesc='Frequency Excursion Calculator' url='http://github.com/TrilbyWhite/fex.git' license='GPL3' | | > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
maintainer="jessse@mccluresk9.com"
pkgname="fex"
pkgver="2"
pkgrel=1
pkgdesc='Frequency Excursion Calculator'
url='http://github.com/TrilbyWhite/fex.git'
license='GPL3'
arch="$(dpkg --print-architecture)"
depends=(
'desktop-file-utils'
'libasound2'
'libcairo2'
'libfftw3-3'
'libxpm4'
'libsndfile1'
'python2.6'
)
makedepends=(
'build-essential'
'dpkg-dev'
'checkinstall'
'git'
'libasound2-dev'
'libcairo2-dev'
'libfftw3-dev'
'libsndfile1-dev'
'libx11-dev'
'libxpm-dev'
'texlive'
)
optdepends=('sox')
source=("git://github.com/TrilbyWhite/fex.git")
sha256sums=('SKIP')
prepare() {
cd "${pkgname}"
|
| ︙ | ︙ |
Changes to pkg/debian/README.
1 |
| | < | 1 2 3 | makedeb is experimental - use at your own risk. |
Changes to pkg/debian/makedeb.
|
| | > | | | | | < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/bin/bash
## comment any lines in main to skip that step ##
main() {
startdir=$(pwd)
get_deps
get_source
prepare
build
sudo apt-get uninstall $remove_deps
sudo apt-get uninstall $remove_build_deps
package
mv "${pkgname}_${pkgver}-${pkgrel}_${arch}.deb" $startdir
}
## do not edit below this line ##
if [[ ! -f DEBBUILD ]]; then
echo "ERROR: DEBBUILD does not exist."; exit 1;
fi
|
| ︙ | ︙ | |||
29 30 31 32 33 34 35 |
# check if installed, continue if exists
to_install="${to_install} $dep"
remove_build_deps="${remove_build_deps} $dep"
done
for dep in "${depends[@]}"; do
# check if installed, continue if exists
to_install="${to_install} $dep"
| | | > < | < < > | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# check if installed, continue if exists
to_install="${to_install} $dep"
remove_build_deps="${remove_build_deps} $dep"
done
for dep in "${depends[@]}"; do
# check if installed, continue if exists
to_install="${to_install} $dep"
deps="${deps}${dep}, "
remove_deps="${remove_deps} $dep"
done
sudo apt-get install $to_install
deps="${deps%, }"
}
get_source() {
for src in "${source[@]}"; do
local protocol="$(echo "$src" | cut -d ':' -f 1)"
case "$protocol" in
git) git clone "$src" ;;
*) error "unknown protocol \"$protocol\"" ;;
esac
done
}
package() {
checkinstall \
--default \
--install=no \
--type debian \
--pkgname "${pkgname}" \
--pkgversion "${pkgver}" \
--pkgrelease "${pkgrel}" \
--pkglicense "${license}" \
--pkgsource "${url}" \
--maintainer "${maintainer}" \
--requires "${deps}" \
--gzman \
make install
}
main
|