summary refs log tree commit diff
path: root/lib2.sh
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-01-27 14:42:06 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-01-27 14:42:06 +0100
commit6dee0885b727f7f8da484ce5eda5599024a671de (patch)
tree733c7d67759ed43541cf5bac917fb27d7e62a261 /lib2.sh
downloadmewix-6dee0885b727f7f8da484ce5eda5599024a671de.tar.gz
mewix-6dee0885b727f7f8da484ce5eda5599024a671de.tar.xz
mewix-6dee0885b727f7f8da484ce5eda5599024a671de.zip
initial commit of mewix
Diffstat (limited to 'lib2.sh')
-rw-r--r--lib2.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib2.sh b/lib2.sh
new file mode 100644
index 0000000..ea7cbe0
--- /dev/null
+++ b/lib2.sh
@@ -0,0 +1,22 @@
+[ -z "$pkgname" ] && error "pkgname unset"
+[ -z "$version" ] && error "version unset"
+
+: ${distfiles:=""}
+configure_args="--prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --bindir=/usr/bin --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib --localstatedir=/var ${configure_args}"
+: ${makejobs:=-j16}
+: ${make_default_target:=all}
+: ${make_default_args:=}
+: ${CC:=gcc}
+: ${CXX:=g++}
+: ${CFLAGS:=-O2 -pipe -fstack-protector-strong -fstack-clash-protection -D_FORTIFY_SOURCE=2}
+: ${CXXFLAGS:=$CFLAGS}
+: ${LDFLAGS:=-Wl,-z,relro -Wl,-z,now}
+: ${make_install_target:=install}
+: ${make_install_args:=}
+: ${DESTDIR:=/dst/$pkgname/$version}
+
+for s in fetch extract configure build check install; do
+  verbose pre_$s
+  verbose do_$s
+  verbose post_$s
+done