COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/autopackage-glpk @ 2320:4e8ecce96b12

Last change on this file since 2320:4e8ecce96b12 was 2270:ac729a29120e, checked in by Alpar Juttner, 18 years ago
  • Add an autopackage generator script for glpk
  • update autopackage specfile
  • Property exe set to *
File size: 2.0 KB
RevLine 
[2270]1#!/bin/bash
2
3case $# in
4    1)
5        ;;
6    *)
7        echo "Usage: autopackage-glpk tarfile"
8        ;;     
9esac
10
11
12ORIGTAR=$1
13VERSION=`echo ${ORIGTAR/.tar.gz}|tr - ' '|awk '{print $(NF)}'`
14
15echo "GLPK VERSION: $VERSION"
16echo "     RELEASE: $RELEASE"
17
18
19set -e
20
21function make-dir () {
22    if [ ! -d $1 ]; then
23        mkdir $1
24    fi
25}
26
27tar xzf $ORIGTAR
28cd glpk-${VERSION}
29mkdir autopackage
30
31echo '# -*-shell-script-*-
32
33[Meta]
34RootName: @lemon.cs.elte.hu/lemon:$SOFTWAREVERSION
35DisplayName: GLPK
36ShortName: glpk
37Maintainer: The LEMON Developers - http://lemon.cs.elte.hu/
38Packager: Alpar Juttner <alpar@cs.elte.hu>
39Summary: GLPK LP/MIP solver
40
41SoftwareVersion: '${VERSION}'
42AutopackageTarget: 1.2
43
44# Only uncomment InterfaceVersion if your package exposes interfaces to other software,
45# for instance if it includes DSOs or python/perl modules. See the developer guide for more info,
46# or ask on autopackage-dev if you dont understand interface versioning in autopackage.
47#
48InterfaceVersion: '${VERSION}'
49
50PackageVersion: 1
51
52[Description]
53The GLPK package is a set of routines written in ANSI C and organized
54in the form of a callable library. This package is intended for solving
55large-scale linear programming (LP), mixed integer linear programming
56(MIP), and other related problems.
57
58The GLPK package includes the following main components:
59
60* implementation of the simplex method;
61* implementation of the primal-dual interior-point method;
62* implementation of the branch-and-bound method;
63* application program interface (API);
64* GNU MathProg modeling language (a subset of AMPL);
65* GLPSOL, a stand-alone LP/MIP solver.
66
67See GLPK webpage <http://www.gnu.org/software/glpk/glpk.html>.
68
69[BuildPrepare]
70prepareBuild
71
72[BuildUnprepare]
73unprepareBuild
74
75[Imports]
76echo '*' | import
77
78[Prepare]
79# Dependency checking
80#require @whatever.you/need 1.0
81
82[Install]
83# Put your installation script here
84#installExe bin/*
85copyFiles * $PREFIX
86
87[Uninstall]
88# Usually just the following line is enough to uninstall everything
89uninstallFromLog
90'>autopackage/default.apspec
91
92makeinstaller
93
94cp *.package *.meta ..
95cd ..
96
97rm -rf glpk-${VERSION}
Note: See TracBrowser for help on using the repository browser.