Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
2419e502
Commit
2419e502
authored
Dec 19, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devbuild: removed. has not been used for many years
parent
bdace10a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
64 deletions
+2
-64
Makefile
Makefile
+2
-3
devbuild.in
devbuild.in
+0
-61
No files found.
Makefile
View file @
2419e502
...
...
@@ -10,9 +10,8 @@ abuildrepo ?= ~/.cache/abuild
LUA_VERSION
=
5.1
LUA_SHAREDIR
?=
$(prefix)
/share/lua/
$(LUA_VERSION)
/
SCRIPTS
:=
abuild devbuild buildrepo abuild-keygen
\
abuild-sign newapkbuild abump apkgrel ap buildlab
\
apkbuild-cpan
SCRIPTS
:=
abuild buildrepo abuild-keygen abuild-sign newapkbuild
\
abump apkgrel ap buildlab apkbuild-cpan
USR_BIN_FILES
:=
$(SCRIPTS)
abuild-tar
SAMPLES
:=
sample.APKBUILD sample.initd sample.confd
\
sample.pre-install sample.post-install
...
...
devbuild.in
deleted
100755 → 0
View file @
bdace10a
#!/bin/sh
# This scripts will:
# 1. create a dist package for current subproject
# 2. update the APKBUILD and build the package
# 3. build the alpine iso
#
# The following is assumed from the subproject:
# * that PACKAGE and VERSION is set in Makefile or defined in a local
# devbuild.conf file
# * that 'make dist' will generate a valid dist package
#
program
=
${
0
##*/
}
# rebuild env. Those values can be overridden in either
# /etc/devbuildrc or $HOME/.devbuildrc
DISTFILES
=
/var/cache/distfiles
APORTS_DIR
=
$HOME
/aports
ALPINE_DIR
=
$HOME
/abuild
# for the local project. Those values can be overridden by
# a .devbuildrc in the subprojects dir
PACKAGE
=
$(
grep
'^PACKAGE'
Makefile |
sed
's/.*=[[:blank:]]*//'
)
VERSION
=
$(
grep
'^VERSION'
Makefile |
sed
's/.*=[[:blank:]]*//'
)
SUFFIX
=
.tar.bz2
REPO
=
core
# let user override the above defaults
for
i
in
/etc/
${
program
}
rc
$HOME
/.
${
program
}
rc ./.
${
program
}
rc
;
do
if
[
-f
$i
]
;
then
.
$i
fi
done
# generate a new dist package
tarball
=
${
PACKAGE
}
-
${
VERSION
}${
SUFFIX
}
make dist
||
exit
1
cp
$tarball
"
$DISTFILES
/"
||
exit
1
# update the APKBUILD, in a subshell
(
cd
$APORTS_DIR
/
$REPO
/
$PACKAGE
||
exit
1
.
./APKBUILD
if
[
"
$pkgver
"
=
"
$VERSION
"
]
;
then
pkgrel
=
$((
$pkgrel
+
1
))
else
pkgrel
=
"0"
fi
sed
-i
-e
" s/^pkgver=.*/pkgver=
$VERSION
/;
s/^pkgrel=.*/pkgrel=
$pkgrel
/;
/^md5sums=
\"
/,/
\"\$
/d"
APKBUILD
||
exit
1
export
SRCDEST
=
"
$DISTFILES
"
abuild checksum
abuild
abuild cleanoldpkg
)
||
exit
1
# rebuild the iso
cd
"
$ALPINE_DIR
"
&&
fakeroot ./mkalpine
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