summaryrefslogtreecommitdiff
path: root/packages/zlib.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-27 02:38:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-27 02:38:42 +0300
commita1807d94008cc932533dd7fff0f78bc8a27fdc66 (patch)
treef13fed8d79d984010cabce5d4f323d99ec3da0e4 /packages/zlib.sh
parentecbc19b90ea893e3934cad6d6542ebc7e5e1a777 (diff)
downloadspm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.tar.gz
spm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.tar.bz2
spm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.tar.xz
spm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.zip
Replace in packages package_use function to ENV_* variables.
Impliment default package_use function for use ENV_* variables.
Diffstat (limited to 'packages/zlib.sh')
-rwxr-xr-xpackages/zlib.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/zlib.sh b/packages/zlib.sh
index 4ccef04..8e25f37 100755
--- a/packages/zlib.sh
+++ b/packages/zlib.sh
@@ -2,6 +2,11 @@
SRCURL=https://github.com/madler/zlib.git
+ENV_PATH="bin:lib:include"
+ENV_LD_LIBRARY_PATH="lib"
+ENV_PKG_CONFIG_PATH="lib/pkgconfig"
+ENV_MANPATH="share/man"
+
function package_build {
run_switch_branch v1.2.11
run_configure
@@ -9,11 +14,3 @@ function package_build {
run_make
run_make_install
}
-
-function package_use {
- env_path "lib"
- env_path "include"
- env_man "share/man"
- env_lib_library_path "lib"
- env_pkg_config_path "lib/pkgconfig"
-}