forked from FemboyOS/fempkg_recipes
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
pkgname = "depot_tools"
|
|
pkgver = "1.0.3"
|
|
source = f"https://chromium.googlesource.com/chromium/tools/depot_tools.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"/var/tmp/DESTDIR"
|
|
|
|
deps = []
|
|
|
|
build = [
|
|
|
|
# 64-bit build
|
|
f"rm -rf {destdir}",
|
|
f"cd {builddir} && install -d -m 777 {destdir}/opt/depot_tools",
|
|
f"cd {builddir} && mv * {destdir}/opt/depot_tools/ && chmod -R 777 {destdir}/opt/depot_tools",
|
|
|
|
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
|
f"install -v -m644 {destdir}/opt/depot_tools/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} {destdir}"
|
|
]
|
|
|
|
triggers = [
|
|
f"chmod 777 -R /opt/depot_tools"
|
|
] |