5 WINE_ORIGIN
=git
://source.winehq.org
/git
/wine.git
6 WINE_BASE
=04f11f20ad436c58b7de50ffe0352dc4250ce63f
7 WINE_COMMIT
=86b92a4be45fa6a1d9b1f7bc9c499794c4756c9e
9 mkdir
"${BUILD_DIR}"/Wine.activity
11 cp -r activity patches background setup.py wineactivity.py build.sh
"${BUILD_DIR}"/Wine.activity
13 if test x
= x
"${WINE_TREE}"; then
14 WINE_TREE
="${BUILD_DIR}"/wine
17 if test -e "${WINE_TREE}"/.git
; then
20 if test x
!= x
"${WINE_NEWTREE}"; then
21 WINE_ORIGIN
=$
(git config remote.origin.url
)
22 WINE_BASE
=$
(git merge-base HEAD origin
/master
)
23 WINE_COMMIT
=$
(git show HEAD
--pretty='format:%H'|
head -n 1)
24 rm "${BUILD_DIR}"/Wine.activity
/patches
/*
25 git format-patch
-o "${BUILD_DIR}"/Wine.activity
/patches
"${WINE_BASE}" ||
exit 1
28 git clone
"${WINE_ORIGIN}" "${WINE_TREE}" ||
exit 1
32 git config user.email nobody@nowhere ||
exit 1
33 git config user.name nobody ||
exit 1
36 (git checkout
"${WINE_COMMIT}" && test -z "$(git diff "${WINE_COMMIT}")") || \
37 (git fetch
&& git checkout
"${WINE_BASE}" && git am
"${BUILD_DIR}"/Wine.activity
/patches
/*.
patch && test -z "$(git diff)") || \
40 sed 's,^WINE_ORIGIN=.*$,WINE_ORIGIN='"${WINE_ORIGIN}"',' --in-place "${BUILD_DIR}"/Wine.activity
/build.sh
41 sed 's,^WINE_BASE=.*$,WINE_BASE='"${WINE_BASE}"',' --in-place "${BUILD_DIR}"/Wine.activity
/build.sh
42 sed 's,^WINE_COMMIT=.*$,WINE_COMMIT='"${WINE_COMMIT}"',' --in-place "${BUILD_DIR}"/Wine.activity
/build.sh
44 .
/configure
--prefix "${BUILD_DIR}"/Wine.activity
${CONFIG_OPTS} ||
exit 1
45 make ${MAKE_OPTS} ||
exit 1
46 make install-lib ||
exit 1
48 cd "${BUILD_DIR}"/Wine.activity
50 if test x
= x
"${DEBUG}"; then
51 find bin lib|
xargs strip
-g
54 find .
-type f |
sed 's,^./,,g' > MANIFEST
56 .
/setup.py dist ||
exit 1
60 mv *.xo
"${ORIG_DIR}" ||
exit 1
66 echo Activity bundle created
at ${ORIG_DIR}/${PACKAGE_FILENAME}