generated from ext/template
feat(project): configure fzf build files
Some checks failed
ci/woodpecker/push/build Pipeline failed
Some checks failed
ci/woodpecker/push/build Pipeline failed
This commit is contained in:
parent
77eb78058b
commit
d060b16bed
6 changed files with 26 additions and 19 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "upstream"]
|
||||||
|
path = upstream
|
||||||
|
url = https://github.com/junegunn/fzf.git
|
||||||
|
|
@ -3,4 +3,4 @@ FROM ubuntu:24.04
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl \
|
apt-get install -y curl \
|
||||||
make \
|
make \
|
||||||
# other packages to build \
|
golang
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -1,13 +1,13 @@
|
||||||
package = mypackage.deb
|
package = fzf-main.deb
|
||||||
|
|
||||||
.PHONY: compile
|
.PHONY: compile
|
||||||
compile:
|
compile:
|
||||||
cd upstream && echo compile
|
cd upstream && make
|
||||||
|
|
||||||
.PHONY: dpkg
|
.PHONY: dpkg
|
||||||
dpkg:
|
dpkg:
|
||||||
mkdir -p deb-package/usr/bin/
|
mkdir -p deb-package/usr/bin/
|
||||||
cp upstream/bin deb-package/usr/bin/
|
cp upstream/target/fzf-linux_amd64 deb-package/usr/bin/fzf
|
||||||
chmod -R o-w deb-package/
|
chmod -R o-w deb-package/
|
||||||
sed -i "s|%date%|`date +%Y%m%d%H%M%S`|g" deb-package/DEBIAN/control
|
sed -i "s|%date%|`date +%Y%m%d%H%M%S`|g" deb-package/DEBIAN/control
|
||||||
dpkg-deb --build deb-package/ $(package)
|
dpkg-deb --build deb-package/ $(package)
|
||||||
|
|
|
||||||
19
README.md
19
README.md
|
|
@ -1,12 +1,15 @@
|
||||||
# Template for external project package building
|
# Unofficial dpkg fzf build from main branch
|
||||||
|
|
||||||
- git submodule add <https://repo.example.com/external/repo.git> upstream
|
fzf is a command-line fuzzy finder:
|
||||||
- Makefile: change package name & compile / dpkg target instructions
|
|
||||||
- Dockerfile.builder: required deb packages / base image
|
|
||||||
- deb-package/DEBIAN/control: Package name, depends, conflict & description
|
|
||||||
|
|
||||||
## Use template
|
- <https://github.com/junegunn/fzf>
|
||||||
|
|
||||||
When using this template check Git content, Issue labels & Branch protection
|
All credit to junegunn and other contributors of this useful project!
|
||||||
|
|
||||||

|
This repo provide semi-automatic build of main branch to ubuntu 24.04 (noble)
|
||||||
|
dpkg package:
|
||||||
|
|
||||||
|
<https://forge.e5150.fr/ext/fzf>
|
||||||
|
|
||||||
|
License file in this repo only apply to build & packaging step files, fzf is
|
||||||
|
licensed as MIT, see upstream project for details.
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
Package: mypackage-main
|
Package: fzf-main
|
||||||
Version: 0.0.1~git%date%-1
|
Version: 0.0.1~git%date%-1
|
||||||
Section: base
|
Section: base
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Maintainer: pips <pips@e5150.fr>
|
Maintainer: pips <pips@e5150.fr>
|
||||||
Homepage: https://example.com
|
Homepage: https://forge.e5150.fr/ext/fzf
|
||||||
Suggests: suggeted-packages
|
Depends: libc6 (>= 2.34)
|
||||||
Depends: depends (>= X.Y.Z), packages (>= X.Y)
|
Conflicts: fzf
|
||||||
Conflicts: package-from-official-repo
|
Replaces: fzf
|
||||||
Description: Description of mypackage
|
Description: fzf build from main
|
||||||
Auto packaging of mypackage following main dev branch
|
Auto packaging of fzf following main dev branch
|
||||||
|
|
|
||||||
1
upstream
Submodule
1
upstream
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 3401c2e0c7c441c2a13c11e958f6b99efc50bd29
|
||||||
Loading…
Add table
Add a link
Reference in a new issue