Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
abuild
Commits
f20d7983
Commit
f20d7983
authored
Mar 17, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
newapkbuild: support for creating sourceforge source urls
parent
149521f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
newapkbuild.in
newapkbuild.in
+7
-1
No files found.
newapkbuild.in
View file @
f20d7983
...
...
@@ -52,6 +52,10 @@ newaport() {
mkdir
-p
"
$pn
"
cd
"
$pn
"
if
[
-z
"
$source
"
]
&&
[
-n
"
$sourceforge
"
]
;
then
source
=
"http://downloads.sourceforge.net/
$pn
/
$pn
-
$pv
.tar.gz"
fi
# replace pkgver in $source
if
[
-n
"
$source
"
]
;
then
source
=
$(
echo
"
$source
"
|
sed
"s/
$pv
/
\$
pkgver/g"
)
...
...
@@ -167,11 +171,12 @@ usage() {
echo
" -h Show this help"
echo
" -l Set package license to LICENSE"
echo
" -u Set package URL"
echo
" -s Use sourceforge source url"
echo
""
exit
0
}
while
getopts
"cd:fhl:u:"
opt
;
do
while
getopts
"cd:fhl:u:
s
"
opt
;
do
case
$opt
in
'c'
)
cpinitd
=
1
;;
'd'
)
pkgdesc
=
"
$OPTARG
"
;;
...
...
@@ -179,6 +184,7 @@ while getopts "cd:fhl:u:" opt; do
'h'
)
usage
;;
'l'
)
license
=
"
$OPTARG
"
;;
'u'
)
url
=
"
$OPTARG
"
;;
's'
)
sourceforge
=
1
;;
esac
done
shift
$((
$OPTIND
-
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment