mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Created initial PKGBUILD and Dockerfile
- Update `bin/compile.sh` to generate sha256sums from binaries
This commit is contained in:
parent
ef1749a1f8
commit
ce5f0aaa63
3 changed files with 40 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM cgr.dev/chainguard/wolfi-base
|
||||||
|
|
||||||
|
RUN apk add --no-cache tini
|
||||||
|
|
||||||
|
USER 65534:65534
|
||||||
|
|
||||||
|
COPY build/gdpm.static /gdpm
|
||||||
|
|
||||||
|
CMD ["/gdpm"]
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
||||||
22
PKGBUILD
Normal file
22
PKGBUILD
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Maintainer: David J. Allen <davidallendj@gmail.com>
|
||||||
|
pkgname=gdpm
|
||||||
|
pkgver=0.0.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="CLI tool to automate managing Godot game engine assets from the command-line. This includes a pre-built, static binary."
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/davidallendj/gdpm"
|
||||||
|
license=('MIT')
|
||||||
|
#groups=
|
||||||
|
depends=('glibc')
|
||||||
|
makedepends=('cmake', 'make', 'clang')
|
||||||
|
source=("https://github.com/davidallendj/gdpm/releases/download/v$pkgver/$pkgname.static.$arch.linux.static")
|
||||||
|
sha256sums=('012e3c32511d6d762ac070808e8bcae7f68dd261bf1cad3dbf4607c97aa1bb3d')
|
||||||
|
|
||||||
|
build () {
|
||||||
|
# shouldn't need to build anything with static binary...
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
make DESTDIR="$pkgdir/" install
|
||||||
|
}
|
||||||
|
|
@ -53,6 +53,12 @@ function clean(){
|
||||||
rm ${script_dir}/../bin/$tests
|
rm ${script_dir}/../bin/$tests
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checksums(){
|
||||||
|
sha256sums ${script_dir}/../bin/$exe
|
||||||
|
sha256sums ${script_dir}/../bin/$static
|
||||||
|
sha256sums ${script_dir}/../bin/$tests
|
||||||
|
}
|
||||||
|
|
||||||
# Run this script at project root
|
# Run this script at project root
|
||||||
#meson configure build
|
#meson configure build
|
||||||
#CXX=clang++ meson compile -C build -j$(proc)
|
#CXX=clang++ meson compile -C build -j$(proc)
|
||||||
|
|
@ -118,6 +124,7 @@ do
|
||||||
--exe) build_exe shift;;
|
--exe) build_exe shift;;
|
||||||
--libs) build_libs shift;;
|
--libs) build_libs shift;;
|
||||||
--tests) build_tests shift;;
|
--tests) build_tests shift;;
|
||||||
|
--sums) checksums shift;;
|
||||||
-d|--docs) build_docs shift;;
|
-d|--docs) build_docs shift;;
|
||||||
-c|--clean) clean shift;;
|
-c|--clean) clean shift;;
|
||||||
-s|--strip) strip_all shift;;
|
-s|--strip) strip_all shift;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue