mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
Merge pull request #16 from davidallendj/pkgbuild
Update PKGBUILD to build using `main` branch
This commit is contained in:
commit
341f0752a3
3 changed files with 71 additions and 22 deletions
22
PKGBUILD
22
PKGBUILD
|
|
@ -1,22 +0,0 @@
|
||||||
# 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
|
|
||||||
}
|
|
||||||
25
SConstruct
Normal file
25
SConstruct
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
# set up variables and glob files
|
||||||
|
env = Environment(
|
||||||
|
CPPPATH = Glob('include/*.hpp'),
|
||||||
|
CPPDEFINES = [],
|
||||||
|
LIBS = []
|
||||||
|
)
|
||||||
|
base_name = "gdpm"
|
||||||
|
include_files = Glob('include/*.hpp')
|
||||||
|
source_files = Glob('src/*.cpp')
|
||||||
|
test_files = Glob('tests/*.cpp')
|
||||||
|
compile_flags = ""
|
||||||
|
|
||||||
|
# build the main executable and tests
|
||||||
|
env.Program(f'{base_name}', source_files)
|
||||||
|
env.Program(f'{base_name}.tests', test_files)
|
||||||
|
|
||||||
|
# build the static library
|
||||||
|
StaticLibrary(f'{base_name}-static')
|
||||||
|
|
||||||
|
# build the shared libraries
|
||||||
|
SharedLibrary(f'{base_name}-shared')
|
||||||
|
SharedLibrary(f'{base_name}-static')
|
||||||
|
SharedLibrary(f'{base_name}-http')
|
||||||
|
SharedLibrary(f'{base_name}-restapi')
|
||||||
46
dist/archlinux/PKGBUILD
vendored
Normal file
46
dist/archlinux/PKGBUILD
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
# Maintainer: David J. Allen <davidallendj@gmail.com>
|
||||||
|
pkgname=gdpm-git
|
||||||
|
pkgver=r86.a6635b1
|
||||||
|
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')
|
||||||
|
depends=('glibc')
|
||||||
|
makedepends=('cmake' 'ninja' 'clang' 'gcc')
|
||||||
|
optdepends=('meson' 'make')
|
||||||
|
source=("$pkgname-$pkgver::git+https://github.com/davidallendj/gdpm")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
|
# update and initialize submodules
|
||||||
|
git submodule update --init modules/argparse
|
||||||
|
git submodule update --init modules/tabulate
|
||||||
|
git submodule update --init modules/indicators
|
||||||
|
git submodule update --init modules/csv2
|
||||||
|
|
||||||
|
# link module headers to include/*
|
||||||
|
ln -s ../modules/argparse/include/argparse include/argparse
|
||||||
|
ln -s ../modules/tabulate/include/tabulate include/tabulate
|
||||||
|
ln -s ../modules/indicators/include/indicators include/indicators
|
||||||
|
ln -s ../modules/csv2/include/csv2 include/csv2
|
||||||
|
}
|
||||||
|
|
||||||
|
build () {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
bin/compile.sh --all
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
|
# install the binary to /usr/bin
|
||||||
|
mkdir -p "${pkgdir}/usr/bin"
|
||||||
|
install -m755 build/gdpm.static "${pkgdir}/usr/bin/gdpm"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue