oops i forgot to commit
This commit is contained in:
35
zip.recipe.py
Normal file
35
zip.recipe.py
Normal file
@@ -0,0 +1,35 @@
|
||||
pkgname = "zip"
|
||||
pkgver = "30"
|
||||
unzip_ver = "6.0"
|
||||
source = f"https://rocketleaguechatp.duckdns.org/zip{pkgver}.tar.gz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = []
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}{pkgver}.tar.gz",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && make -f unix/Makefile generic CC=\"gcc -std=gnu89\"",
|
||||
f"cd {builddir} && make prefix={destdir}/usr MANDIR={destdir}/usr/share/man/man -f unix/Makefile install",
|
||||
f"mkdir -p {builddir}/unzip && cd {builddir}/unzip && wget https://github.com/thejoshwolfe/info-zip-unzip/archive/refs/tags/{unzip_ver}.tar.gz ",
|
||||
f"cd {builddir}/unzip && tar -xvf {unzip_ver}.tar.gz && cd info-zip-unzip-{unzip_ver} && make -f unix/Makefile generic CC=\"gcc -std=gnu89\"",
|
||||
f"cd {builddir}/unzip/info-zip-unzip-{unzip_ver} && make prefix={destdir}/usr MANDIR={destdir}/usr/share/man/man -f unix/Makefile install",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/unzip/",
|
||||
f"install -v -m644 {builddir}/LICENSE {destdir}/usr/share/licenses/{pkgname}/LICENSE",
|
||||
f"install -v -m644 {builddir}/unzip/info-zip-unzip-{unzip_ver}/LICENSE {destdir}/usr/share/licenses/unzip/LICENSE",
|
||||
|
||||
# Make tarball + manifests
|
||||
f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .",
|
||||
f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt",
|
||||
|
||||
# Cleanup
|
||||
f"rm -rf {fembuilddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user