sc-im: 0.4.0 -> 0.5.0

- Bump version to 0.5.0
- Enable support for reading '.xls' and '.xlsx' files.

The support for reading Excel files depends on:
  - libxml2, which was already a build input.
  - libzip
  - libxls
This commit is contained in:
rbasso 2017-03-16 12:56:55 +09:00
parent 645c2189d1
commit 4f531a1d2b

View File

@ -1,23 +1,25 @@
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, pkgconfig }:
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, libzip, libxls, pkgconfig }:
stdenv.mkDerivation rec {
version = "0.4.0";
version = "0.5.0";
name = "sc-im-${version}";
src = fetchFromGitHub {
owner = "andmarti1424";
repo = "sc-im";
rev = "v${version}";
sha256 = "1v1cfmfqs5997bqlirp6p7smc3qrinq8dvsi33sk09r33zkzyar0";
sha256 = "1vdn9p9srvdksxznrn65pfigwrd7brlq8bac3pjfqsvf8gjnzq61";
};
buildInputs = [ yacc ncurses libxml2 pkgconfig ];
buildInputs = [ yacc ncurses libxml2 libzip libxls pkgconfig ];
buildPhase = ''
cd src
sed -i "s,prefix=/usr,prefix=$out," Makefile
sed -i "s,-I/usr/include/libxml2,-I$libxml2," Makefile
sed -e "\|^prefix = /usr/local| s|/usr/local|$out|" \
-e "\|^#LDLIBS += -lxlsreader| s|^#|| " \
-e "\|^#CFLAGS += -DXLS| s|^#|| " \
-i Makefile
make
export DESTDIR=$out