2012-05-14 21:43:46 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
mkdir -pv $out/bin/
|
2013-02-27 22:36:25 +00:00
|
|
|
mkdir -pv $out/share/
|
|
|
|
mkdir -pv $out/share/applications/
|
|
|
|
mkdir -pv $out/share/pixmaps/
|
2012-05-14 21:43:46 +00:00
|
|
|
|
|
|
|
cat > $out/bin/zathura <<EOF
|
|
|
|
#!/bin/sh
|
2013-02-27 22:36:25 +00:00
|
|
|
exec $zathura_core/bin/zathura --plugins-dir=$plugins_path "\$@"
|
2012-05-14 21:43:46 +00:00
|
|
|
EOF
|
|
|
|
|
2013-02-27 22:36:25 +00:00
|
|
|
cp -rv $zathura_core/share/man $out/share
|
|
|
|
cp -rv $zathura_core/share/locale $out/share
|
|
|
|
cp -rv $icon $out/share/pixmaps/pwmt.xpm
|
|
|
|
|
|
|
|
cat $zathura_core/share/applications/zathura.desktop > $out/share/applications/zathura.desktop
|
|
|
|
echo "Icon=pwmt" >> $out/share/applications/zathura.desktop
|
|
|
|
|
2012-05-14 21:43:46 +00:00
|
|
|
chmod 755 $out/bin/zathura
|
|
|
|
|