mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: picosat-965
This commit is contained in:
parent
e795dbe930
commit
3e4ed393e6
1 changed files with 42 additions and 0 deletions
42
srcpkgs/picosat/template
Normal file
42
srcpkgs/picosat/template
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Template file for 'picosat'
|
||||||
|
pkgname=picosat
|
||||||
|
version=965
|
||||||
|
revision=1
|
||||||
|
build_style=configure
|
||||||
|
configure_script="./configure.sh"
|
||||||
|
configure_args="--shared --static"
|
||||||
|
short_desc="Satisfiability (SAT) solver for boolean variables"
|
||||||
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="http://fmv.jku.at/picosat/"
|
||||||
|
changelog="http://fmv.jku.at/picosat/NEWS"
|
||||||
|
distfiles="http://fmv.jku.at/picosat/picosat-${version}.tar.gz"
|
||||||
|
checksum=15169b4f28ba8f628f353f6f75a100845cdef4a2244f101a02b6e5a26e46a754
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
# fix parallel builds
|
||||||
|
vsed -i -e 's/-l\(picosat\)/-l:lib\1.a/g' makefile.in
|
||||||
|
# include breaks musl build and is not necessary for getrusage(2)
|
||||||
|
vsed -i -e '/sys\/unistd.h/d' picosat.c
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vbin picogcnf
|
||||||
|
vbin picomcs
|
||||||
|
vbin picomus
|
||||||
|
vbin picosat
|
||||||
|
vinstall libpicosat.a 644 /usr/lib
|
||||||
|
vinstall libpicosat.so 755 /usr/lib
|
||||||
|
vinstall picosat.h 644 /usr/include
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
picosat-devel_package() {
|
||||||
|
short_desc+=" - development files"
|
||||||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include
|
||||||
|
vmove "usr/lib/*.a"
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue