Fex

Check-in [5e9105912d]

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: 5e9105912d7601e231403b008d6d3df35c13283f09d45c2dfde3f103ef4bcdba
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
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pkg/debian/DEBBUILD.

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
maintainer="jessse@mccluresk9.com"
pkgname="fex"
pkgver="2"
pkgrel=1
pkgdesc='Frequency Excursion Calculator'
url='http://github.com/TrilbyWhite/fex.git'
license='GPL3'
arch="$(uname -m)"
depends=(
	'desktop-file-utils'

	'libcairo2'
	'libfftw3-3'
	'libxpm4'
	'libsndfile1'
	'python2.6'
)
makedepends=(
	'build-essential'
	'dpkg-dev'
	'checkinstall'
	'git'

	'libcairo2-dev'
	'libfftw3-dev'
	'libsndfile1-dev'

	'libxpm-dev'
	'texlive-core'
)
optdepends=('sox')
source=("git://github.com/TrilbyWhite/fex.git")
sha256sums=('SKIP')

prepare() {
	cd "${pkgname}"







|


>











>



>

|







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
2
3
4

makedeb is experimental, untested, and incomplete.

Do not use it yet.

|

<
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
#!/usr/bin/bash
## comment any lines in main to skip that step ##
main() {

	sudo get_deps
	get_source
	prepare
	build
	sudo apt get uninstall $remove_deps
	sudo apt get uninstall $remove_build_deps
	sudo package
	sudo dpkg -i "${pkgname}_${pkgver}-${pkgrel}_${arch}.deb"
	sudo post_install
}

## do not edit below this line ##

if [[ ! -f DEBBUILD ]]; then
	echo "ERROR: DEBBUILD does not exist."; exit 1;
fi
|


>
|



|
|
|
|
<







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
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
72

		# 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 \

		--type debian \
		--pkgname "${pkgname}" \
		--pkgversion "${pkgver}" \
		--pkgrelease "${pkgrel}" \
		--pkglicense "${license}" \
	#	--pkggroup ?? \
		--pkgsource "${url}" \
		--maintainer "${maintainer}" \
		--requires "${deps}"
	#	--dpkgflags ?? \
		--gzman \
	#	--review-control \
		make install
}

main









|



|















>





<


|
<

<





>
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