summaryrefslogtreecommitdiff
path: root/sources/libressl/libressl.spec
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-11-16 20:08:27 -0500
committerAlexander Hill <ahill@breadpudding.dev>2025-11-16 20:08:27 -0500
commita4c9aa19c75bcc57be72cf82df9978cadaee5051 (patch)
tree53441e84c791e721d1f2578b84f1bf4de0c79796 /sources/libressl/libressl.spec
parent9772d7f49dbef2178379ac912ee31e6cf9684f1f (diff)
Bootstrapped GNU Make and added LibreSSL
Diffstat (limited to 'sources/libressl/libressl.spec')
-rw-r--r--sources/libressl/libressl.spec37
1 files changed, 37 insertions, 0 deletions
diff --git a/sources/libressl/libressl.spec b/sources/libressl/libressl.spec
new file mode 100644
index 0000000..790ce1b
--- /dev/null
+++ b/sources/libressl/libressl.spec
@@ -0,0 +1,37 @@
+# Maintainer: Alexander Hill <ahill@breadpudding.dev>
+SRC_HASH="6d5c2f58583588ea791f4c8645004071d00dfa554a5bf788a006ca1eb5abd70b"
+SRC_NAME="libressl"
+SRC_URL="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-4.2.1.tar.gz"
+SRC_VERSION="4.2.1"
+
+build() {
+ tar xf ../$SRC_FILENAME
+ cd libressl-*/
+ # TODO: What even is sharedstatedir and what should Maple Linux do with it?
+ # ~ahill
+ ./configure \
+ --bindir=$TT_BINDIR \
+ --build=$TT_BUILD \
+ --datarootdir=/usr/share \
+ --disable-static \
+ --host=$TT_TARGET \
+ --includedir=$TT_INCLUDEDIR \
+ --libdir=$TT_LIBDIR \
+ --libexecdir=$TT_LIBDIR \
+ --localstatedir=/var \
+ --prefix=$TT_PREFIX \
+ --runstatedir=/run \
+ --sbindir=$TT_BINDIR \
+ --sysconfdir=$TT_CONFDIR \
+ --with-sysroot=$TT_SYSROOT
+ make -j $TT_PROCS
+}
+
+clean() {
+ rm -rf libressl-*/
+}
+
+package() {
+ cd libressl-*/
+ make -j $TT_PROCS install DESTDIR=$TT_SYSROOT
+} \ No newline at end of file