All pastes #71760 Raw Edit

Miscellany

public shellscript v1 · immutable
#71760 ·published 2006-06-26 03:18 UTC
rendered paste body
# -*-shell-script-*-## This is an example specfile. Delete these comments when you're done.#[Meta]RootName: @mysite.org/myproject:$SOFTWAREVERSIONDisplayName: MyProject Strategy GameShortName: myprojectMaintainer: John Smith <smith@mysite.org>Packager: John Smith <smith@mysite.org>Summary: MyProject is an exampleURL: http://www.mysite.org/License: GNU General Public License, Version 2SoftwareVersion: 1.0# SoftwareVersion: @VERSION@Repository: http://www.mysite.org/downloads/myproject.xml# If you change the autopackage but not the software itself,# increment this number.# PackageVersion: 1# This is the version of the autopackage runtime this package is# written for. Increasing this number implies you have read the# "Migrating to 1.X" document and understand the impact it will have# on your package. Some APIs may change their behaviour and new# features will be enabled depending on what this is set to.AutopackageTarget: 1.2# Only uncomment InterfaceVersion if your package exposes interfaces# to other software, for instance if it includes DSOs or python/perl# modules. See the developer guide for more info, or ask on# autopackage-dev if you aren't sure about interface versioning.## InterfaceVersion: 0.0[BuildPrepare]# For ./configure based systems this is a good default#prepareBuild --with-some-featureecho 'hi' > $build_root/test[BuildUnprepare]unprepareBuild[Imports]echo '*' | import[Prepare][Install]installExe testsafeSed "$PREFIX/bin/test" 's/hi/bye/g'[Uninstall]# Usually just the following line is enough to uninstall everythinguninstallFromLog