summaryrefslogtreecommitdiffstats
path: root/mkpkgs
blob: 2d0f09d17dd93eb0f985989b52f1d1235fc3741b (plain)
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
37
38
39
40
41
42
43
44
#!/bin/sh

set -eu

PKGS='
	libcurl.4
	libform.6
	libformw.6
	libmenu.6
	libmenuw.6
	libncurses++.5
	libncurses++.6
	libncurses++w.5
	libncurses++w.6
	libncurses.5
	libncurses.6
	libncursesw.5
	libncursesw.6
	libpanel.6
	libpanelw.6
	libtic.6
	libtinfo.5
	libtinfo.6
	'

for pkg in ${PKGS}; do
	# These are installed into section "base" because these packages don't
	# semantically belong anywhere else.  They can't be installed into
	# "lib", because opkbuild would append ":${Host-Arch}" to their names,
	# which is exactly the problem we're trying to solve here.
	mkdir -p "${pkg}.pkg"
	cat 1>"${pkg}.pkg/control" 0<<-EOF
		Architecture: any
		Platform: all
		Section: base
		Depends:
		 ${pkg}:\${Host-Arch},
		 malt-common (= \${Source-Version}),
		Description: Multiarch library transition for ${pkg}
		 \${Common-Description}
		 .
		 This is a transitional package for ${pkg}.
		EOF
done