wok-6.x rev 24426

updated cmatrix (1.2a -> 2.0)
author Hans-G?nter Theisgen
date Sat Feb 12 11:04:56 2022 +0100 (2022-02-12)
parents 453c249b6219
children 83b97236db32
files cmatrix/receipt
line diff
     1.1 --- a/cmatrix/receipt	Fri Feb 11 17:50:36 2022 +0000
     1.2 +++ b/cmatrix/receipt	Sat Feb 12 11:04:56 2022 +0100
     1.3 @@ -1,33 +1,35 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="cmatrix"
     1.7 -VERSION="1.2a"
     1.8 +VERSION="2.0"
     1.9  CATEGORY="misc"
    1.10  SHORT_DESC="Matrix screensaver."
    1.11  MAINTAINER="paul@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="https://www.asty.org/cmatrix/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="https://www.asty.org/cmatrix/"
    1.17 -WGET_URL="https://www.asty.org/cmatrix/dist/$TARBALL"
    1.18 +WGET_URL="https://github.com/abishekvashok/$PACKAGE/archive/v$VERSION.tar.gz"
    1.19  
    1.20  DEPENDS="ncurses"
    1.21 -BUILD_DEPENDS="ncurses-dev"
    1.22 +BUILD_DEPENDS="cmake ncurses-dev"
    1.23  
    1.24  # Rules to configure and make the package.
    1.25  compile_rules()
    1.26  {
    1.27 -	export LDFLAGS="$LDFLAGS -ltinfo"
    1.28 -	./configure \
    1.29 -		--prefix=/usr \
    1.30 -		--infodir=/usr/share/info \
    1.31 -		--mandir=/usr/share/man \
    1.32 -		$CONFIGURE_ARGS &&
    1.33 -	make && make DESTDIR=$DESTDIR install
    1.34 +	# 1.2a
    1.35 +#	export LDFLAGS="$LDFLAGS -ltinfo"
    1.36 +
    1.37 +	mkdir	_build &&
    1.38 +	cd	_build &&
    1.39 +	cmake	..				\
    1.40 +		-D CMAKE_INSTALL_PREFIX=/usr &&
    1.41 +	make &&
    1.42 +	make DESTDIR=$DESTDIR install
    1.43  }
    1.44  
    1.45  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.46  genpkg_rules()
    1.47  {
    1.48 -	mkdir -p $fs/usr
    1.49 -	cp -a $install/usr/bin $fs/usr
    1.50 +	cook_copy_folders	bin
    1.51  }