Femboyos 2 full rewrite full working CI
This commit is contained in:
42
aspell.recipe.py
Normal file
42
aspell.recipe.py
Normal file
@@ -0,0 +1,42 @@
|
||||
pkgname = "aspell"
|
||||
pkgver = "0.60.8.1"
|
||||
eng_ver = "2020.12.07-0"
|
||||
Pkgver = pkgver[:4]
|
||||
source = f"https://ftpmirror.gnu.org/gnu/aspell/aspell-{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 = ["which"]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.gz && "
|
||||
f"wget https://ftpmirror.gnu.org/gnu/aspell/dict/en/aspell6-en-{eng_ver}.tar.bz2",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && sed -e 's/; i.*size)/, e = end(); i != e; ++i, ++size_)/' -i modules/speller/default/vector_hash-t.hpp && ./configure --prefix=/usr",
|
||||
f"cd {builddir} && make -j$(nproc)",
|
||||
f"cd {builddir} && make DESTDIR={destdir} install && "
|
||||
f"ln -svfn aspell-{Pkgver} {destdir}/usr/lib/aspell && "
|
||||
f"install -v -m755 -d {destdir}/usr/share/doc/aspell-{pkgver}/aspell{{,-dev}}.html && "
|
||||
f"install -v -m644 manual/aspell.html/* {destdir}/usr/share/doc/aspell-{pkgver}/aspell.html && "
|
||||
f"install -v -m644 manual/aspell-dev.html/* {destdir}/usr/share/doc/aspell-{pkgver}/aspell-dev.html",
|
||||
|
||||
f"cd {builddir} && install -v -m 755 scripts/ispell {destdir}/usr/bin/ && "
|
||||
f"cd {builddir} && install -v -m 755 scripts/spell {destdir}/usr/bin/",
|
||||
|
||||
f"cd {builddir} && tar xf ../aspell6-en-{eng_ver}.tar.bz2 && cd aspell6-en-{eng_ver} && ./configure && make -j$(nproc) && make DESTDIR={destdir} install",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/COPYING {destdir}/usr/share/licenses/{pkgname}/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