Merge branch 'master' of github.com:Bitmessage/PyBitmessage
This commit is contained in:
commit
f317fafbb3
17
arch.sh
17
arch.sh
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
GIT_APP=PyBitmessage
|
||||
APP=pybitmessage
|
||||
PREV_VERSION=0.3.5
|
||||
VERSION=0.3.5
|
||||
|
@ -25,24 +26,12 @@ make clean
|
|||
rm -f archpackage/*.gz
|
||||
|
||||
# having the root directory called name-version seems essential
|
||||
mv ../${APP} ../${APP}-${VERSION}
|
||||
mv ../${GIT_APP} ../${APP}-${VERSION}
|
||||
tar -cvzf ${SOURCE} ../${APP}-${VERSION} --exclude-vcs
|
||||
|
||||
# rename the root directory without the version number
|
||||
mv ../${APP}-${VERSION} ../${APP}
|
||||
mv ../${APP}-${VERSION} ../${GIT_APP}
|
||||
|
||||
# calculate the MD5 checksum
|
||||
CHECKSM=$(md5sum ${SOURCE})
|
||||
sed -i "s/md5sums[^)]*)/md5sums=(${CHECKSM%% *})/g" archpackage/PKGBUILD
|
||||
|
||||
cd archpackage
|
||||
|
||||
# Create the package
|
||||
tar -c -f ${APP}-${VERSION}.pkg.tar .
|
||||
sync
|
||||
xz ${APP}-${VERSION}.pkg.tar
|
||||
sync
|
||||
|
||||
# Move back to the original directory
|
||||
cd ${CURRDIR}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user