Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b14c966b23d123d26157f26662c9ce47fff5b220
commit b14c966b23d123d26157f26662c9ce47fff5b220 Author: Priyank <[email protected]> Date: Sat Dec 20 18:25:44 2008 +0530 gnustep.sh: Initial import diff --git a/source/include/gnustep.sh b/source/include/gnustep.sh new file mode 100644 index 0000000..6efa3f3 --- /dev/null +++ b/source/include/gnustep.sh @@ -0,0 +1,78 @@ +#!/bin/sh + +### +# = gnustep.sh(3) +# Priyank Gosalia <[email protected]> +# +# == NAME +# gnustep.sh - for Frugalware +# +# == SYNOPSIS +# Common schema for GNUstep packages. +# +# == EXAMPLE +# -------------------------------------------------- +# pkgname=gnustep-make +# pkgver=2.0.6 +# pkgrel=1 +# pkgdesc="The GNUstep make utilities" +# archs=('i686' 'x86_64') +# Finclude gnustep +# sha1sums=('86eab53a01b16dee695002dd22981b55a16cc085') +# -------------------------------------------------- +# +# == OPTIONS +# * _F_gnustep_name (defaults to $pkgname): if you want to use a custom package +# name (for example the upstream name contains uppercase letters) then use this +# to declare the real name + +### + +if [ -z $_F_gnustep_name ] ; then + _F_gnustep_name=$pkgname +fi + +if [ -z $_F_gnustep_category ] ; then + _F_gnustep_category="core" +fi + +### +# == OVERWRITTEN VARIABLES +# * url +# * groups +# * up2date +# * source() +### + +Fprefix="/usr/lib/GNUstep" +groups=('gnustep') +url="http://www.gnustep.org/" +dlurl="http://ftpmain.gnustep.org/pub/gnustep/$_F_gnustep_category/" +up2date="lynx -dump $url/resources/downloads.php | grep -m1 $_F_gnustep_name | Flasttar" +source=($dlurl/${_F_gnustep_name}-${pkgver}.tar.gz) + +### +# == APPENDED VARIABLES +# * scriptlet to options() +### +options=(${optio...@]} 'scriptlet') + +Fgnustepinit() +{ + Fmessage "sourcing /etc/profile.d/GNUstep.sh" + source /etc/profile.d/GNUstep.sh || Fdie + Fprefix="/usr/lib/GNUstep" +} + +Fbuild_gnustep() +{ + Fgnustepinit + Fbuild +} + +build() +{ + Fbuild_gnustep +} + + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
