-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathportz_install_mingw
54 lines (38 loc) · 1.09 KB
/
portz_install_mingw
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
45
46
47
48
49
50
51
#!/bin/bash
#
# This file is part of 'portz'
#
# Copyright (C) Zbigniew Zagorski <z.zagorski@gmail.com> and others,
# licensed to the public under the terms of the GNU GPL (>= 2)
# see the file COPYING for details
#
# I.e., do what you like, but keep copyright and there's NO WARRANTY.
#
PNAME=portz-install-mingw
export PNAME
set -e
#set -x
portz_root=${portz_libdir-`pwd`}
stereotype=verbatim
. ${portz_root}/scripts/defs.sh
package=$1
shift
staging_dir=${TMP}/portz/${package}/staging
src_dir=${TMP}/portz/${package}/src
inform "prefix = $prefix"
inform "exec_prefix = $exec_prefix"
rm -rf ${staging_dir}
rm -rf ${src_dir}
while [ -n "$1" ] ; do
filename=$1
shift
baseurl=http://prdownloads.sf.net/mingw/${filename}
archive_file=$(portz_step $(pwd) fetch ${baseurl})
inform archive_file="$archive_file"
portz_step ${src_dir} unarchive ${archive_file}
done
portz_step ${src_dir} install_staging
portz_step ${staging_dir} make_manifest
portz_step ${staging_dir} deploy
rm -rf ${TMP}/portz/${package}
# jedit: :tabSize=8:indentSize=4:noTabs=true:mode=shellscript: