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
15718f9c
Commit
15718f9c
authored
Jun 28, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
newapkbuild: build and package sections for 'make' buildtype
This buildtype is when there is a simple Makefile only.
parent
91c07723
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
newapkbuild.in
newapkbuild.in
+15
-1
No files found.
newapkbuild.in
View file @
15718f9c
...
...
@@ -33,6 +33,12 @@ is_url() {
}
# Build sections
build_make
()
{
cat
>>
APKBUILD
<<
__EOF__
make || return 1
__EOF__
}
build_autotools
()
{
cat
>>
APKBUILD
<<
__EOF__
./configure --prefix=/usr
\\
...
...
@@ -59,13 +65,17 @@ __EOF__
}
# Package sections
package_
autotools
()
{
package_
make
()
{
cat
>>
APKBUILD
<<
__EOF__
make DESTDIR="
\$
pkgdir" install || return 1
rm -f "
\$
pkgdir"/usr/lib/*.la
__EOF__
}
package_autotools
()
{
package_make
}
package_perl
()
{
cat
>>
APKBUILD
<<
__EOF__
make DESTDIR="
\$
pkgdir" install || return 1
...
...
@@ -200,6 +210,8 @@ build() {
__EOF__
case
"
$buildtype
"
in
make
)
build_make
;;
autotools
)
build_autotools
;;
perl
)
...
...
@@ -220,6 +232,8 @@ package() {
__EOF__
case
"
$buildtype
"
in
make
)
package_make
;;
autotools
)
package_autotools
;;
perl
)
...
...
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