generated from ext/template
This commit is contained in:
parent
166ff66a40
commit
238c85561b
6 changed files with 40 additions and 20 deletions
12
Makefile
12
Makefile
|
|
@ -1,14 +1,18 @@
|
|||
|
||||
package = mypackage.deb
|
||||
package = neovim.deb
|
||||
|
||||
.PHONY: compile
|
||||
compile:
|
||||
cd upstream && echo compile
|
||||
cd upstream && make CMAKE_BUILD_TYPE=Release
|
||||
|
||||
.PHONY: dpkg
|
||||
dpkg:
|
||||
mkdir -p deb-package/usr/bin/
|
||||
cp upstream/bin deb-package/usr/bin/
|
||||
mkdir -p deb-package/usr/bin deb-package/usr/lib/x86_64-linux-gnu/nvim deb-package/usr/share/applications deb-package/usr/share/icons/hicolor/128x128/app deb-package/usr/share/nvim
|
||||
cp upstream/build/bin/nvim deb-package/usr/bin/
|
||||
cp upstream/runtime/nvim.desktop deb-package/usr/share/applications/
|
||||
cp upstream/runtime/nvim.png deb-package/usr/share/icons/hicolor/128x128/app/
|
||||
cp -r upstream/build/lib/nvim/parser deb-package/usr/lib/x86_64-linux-gnu/nvim/
|
||||
cp -r upstream/runtime deb-package/usr/share/nvim/
|
||||
chmod -R o-w deb-package/
|
||||
sed -i "s|%date%|`date +%Y%m%d`|g" deb-package/DEBIAN/control
|
||||
sed -i "s|%hash%|$(commit_abbrev)|g" deb-package/DEBIAN/control
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue