Femboyos 2 full rewrite full working CI
This commit is contained in:
29
cliphist.recipe.py
Normal file
29
cliphist.recipe.py
Normal file
@@ -0,0 +1,29 @@
|
||||
pkgname = "cliphist"
|
||||
pkgver = "0.7.0"
|
||||
source = f"https://github.com/sentriz/cliphist.git"
|
||||
builddir = f"/tmp/fempkgbuild/{pkgname}"
|
||||
source_type = "git"
|
||||
fembuilddir = builddir
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = ["go"] # i also dont know any other bbbbbbbbbbbbbbbbbb
|
||||
|
||||
build = [
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && go build -o cliphist",
|
||||
f"cd {builddir} && install -d -m 755 {destdir}/usr/bin",
|
||||
f"cd {builddir} && mv cliphist {destdir}/usr/bin",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/LICENSE {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 {builddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user