Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
Totally reorganized the source structure.
Browse files Browse the repository at this point in the history
Translation updated (needs to be done again for all languages except French)
Compilation and packaging reworked.
  • Loading branch information
Cyrille Pontvieux committed Feb 24, 2013
1 parent 3df269c commit 18a65a2
Show file tree
Hide file tree
Showing 85 changed files with 24,261 additions and 22,924 deletions.
28 changes: 28 additions & 0 deletions SLKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# vim: set syn=sh et ai sta sw=2 ts=2 tw=0:
#Packager: JRD <[email protected]>
#dep: btrfs-progs,coreutils,dosfstools,e2fsprogs,file,findutils,glibc,grep,jfsutils,ntfsprogs|ntfs-3g,python,reiserfsprogs,salixtools,shadow,spkg,util-linux,xfsprogs
#sug: bootsetup|lilosetup,gparted,grub2,lilo,pygtk

pkgname=salix-live-installer
pkgver=0.4
pkgrel=1cp
arch=noarch
source=(https://github.com/jrd/$pkgname/archive/$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname-\$arch-$pkgver/
url=http://salixos.org
options=('noextract')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (Install Salix Standard from a Live environment)"
"Salix Live Installer helps installing Salix on you computer from the"
"comfort of SalixLive's graphic environment."
"A ncurses version is also in development."
)

build() {
cd $SRC/$pkgname-$pkgver
./compile.sh
DESTDIR=$PKG ./install.sh
}
5 changes: 4 additions & 1 deletion clean.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh
cd $(dirname "$0")
rm -rf src/*.desktop src/*.pyc po/*.mo salix-live-installer-*.*
find . -type f -name '*.pyc' -delete
find . -type f -name '*.mo' -delete
[ -d data/locale ] && rm -r data/locale
[ -d build ] && rm -r build
17 changes: 11 additions & 6 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/sh

cd $(dirname $0)
for i in `ls po/*.po`;do
echo "Compiling `echo $i|sed "s|po/||"`"
msgfmt $i -o `echo $i |sed "s/.po//"`.mo
[ -d build ] && rm -r build
mkdir build
for p in data/po/*.po; do
l=$(basename $p .po)
echo "Compiling $l language"
msgfmt $p -o build/$l.mo
done
intltool-merge po/ -d -u src/salix-live-installer.desktop.in src/salix-live-installer.desktop
intltool-merge po/ -d -u src/salix-live-installer-kde.desktop.in src/salix-live-installer-kde.desktop
intltool-merge po/ -d -u src/salix-live-installer.desktop.in build/salix-live-installer.desktop
cat <<'EOF' > build/salix-live-installer
#!/bin/sh
python /usr/share/salix-live-installer/launcher.py "$@"
EOF
1 change: 1 addition & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
locale
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions data/po/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.mo
Loading

0 comments on commit 18a65a2

Please sign in to comment.