1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/applications/misc/zathura/builder.sh
2013-02-28 12:08:36 +04:00

22 lines
552 B
Bash

source $stdenv/setup
mkdir -pv $out/bin/
mkdir -pv $out/share/
mkdir -pv $out/share/applications/
mkdir -pv $out/share/pixmaps/
cat > $out/bin/zathura <<EOF
#!/bin/sh
exec $zathura_core/bin/zathura --plugins-dir=$plugins_path "\$@"
EOF
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
chmod 755 $out/bin/zathura