-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created 0.0.1 release * Added AUR package
- Loading branch information
Showing
5 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
if [ $# -ne 1 ]; then | ||
echo "Usage: build_release.sh <version number>" | ||
exit 1 | ||
fi | ||
|
||
APPNAME="xmlfs" | ||
RELEASENAME=$APPNAME-$1 | ||
|
||
mkdir -p $RELEASENAME | ||
|
||
cat LICENSE | sed s/CURVERSION/$1/g > $RELEASENAME/LICENSE | ||
cat README | sed s/CURVERSION/$1/g > $RELEASENAME/README | ||
cat config.mk | sed s/CURVERSION/$1/g > $RELEASENAME/config.mk | ||
cat Makefile | sed s/CURVERSION/$1/g > $RELEASENAME/Makefile | ||
cat main.c | sed s/CURVERSION/$1/g > $RELEASENAME/main.c | ||
cat xmlhelpers.h | sed s/CURVERSION/$1/g > $RELEASENAME/xmlhelpers.h | ||
cat xmlhelpers.c | sed s/CURVERSION/$1/g > $RELEASENAME/xmlhelpers.c | ||
cat global.h | sed s/CURVERSION/$1/g > $RELEASENAME/global.h | ||
|
||
tar cvzf releases/${RELEASENAME}.tar.gz $RELEASENAME | ||
|
||
find . -name 'build_pkg.sh' -exec {} $1 \; | ||
|
||
rm -rf $RELEASENAME | ||
|
||
echo "Now upload release to web and git-hub" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Contributor: halhen <halhen at k2h dot se> | ||
pkgname=xmlfs | ||
pkgver=CURVERSION | ||
pkgrel=1 | ||
pkgdesc="mount xml files as directory structures" | ||
license=(GPL) | ||
arch=('i686' 'x86_64') | ||
url=http://github.com/halhen/xmlfs/tree/master | ||
depends=('fuse>=2.6' libxml2) | ||
source=(http://www.k2h.se/code/dl/$pkgname-$pkgver.tar.gz) | ||
md5sums=('MD5SUM') | ||
|
||
build() { | ||
cd $startdir/src/$pkgname-$pkgver | ||
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=$startdir/pkg install || return 1 | ||
install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
# | ||
# Generate stuff that goes onto the website | ||
# Called by ../../build_release.sh and depends on its actions | ||
# Will also run in it's directory | ||
# $1 is version number | ||
|
||
# TODO: update pkgrel somehow | ||
|
||
|
||
APPNAME="xmlfs" | ||
RELEASENAME=$APPNAME-$1 | ||
|
||
echo "Generating archlinux package for $APPNAME" | ||
echo "Make sure pkgrel in PKGBUILD-template is set correctly" | ||
|
||
MD5=`(md5sum releases/${RELEASENAME}.tar.gz | awk '{print $1}')` | ||
|
||
cat dist/archlinux/PKGBUILD-template | sed s/CURVERSION/$1/g | sed s/MD5SUM/$MD5/g > releases/archlinux/PKGBUILD | ||
|
||
cd releases/archlinux/ | ||
|
||
makepkg -f --source | ||
rm PKGBUILD | ||
|
||
cd .. |
Binary file not shown.
Binary file not shown.