|
@@ -22,6 +22,11 @@ apk add --no-cache abuild git gcc build-base bison db-dev flex expat-dev perl-de
|
|
}
|
|
}
|
|
|
|
|
|
build_and_install(){
|
|
build_and_install(){
|
|
|
|
+ cd /usr/src/kamailio
|
|
|
|
+ REPO_OWNER=$(git remote get-url origin 2> /dev/null | sed -e 's:^.*github.com/::' -e 's:/.*\.git::')
|
|
|
|
+ if [ ! -z "$REPO_OWNER" ]; then
|
|
|
|
+ sed -i -e "s:github.com/kamailio:github.com/$REPO_OWNER:" /usr/src/kamailio/pkg/kamailio/alpine/APKBUILD
|
|
|
|
+ fi
|
|
if [ ! -z "$GIT_TAG" ]; then
|
|
if [ ! -z "$GIT_TAG" ]; then
|
|
sed -i -e "s/^_gitcommit=.*/_gitcommit=$GIT_TAG/" /usr/src/kamailio/pkg/kamailio/alpine/APKBUILD
|
|
sed -i -e "s/^_gitcommit=.*/_gitcommit=$GIT_TAG/" /usr/src/kamailio/pkg/kamailio/alpine/APKBUILD
|
|
fi
|
|
fi
|