Updated PKGBUILD to remove existing module links

This commit is contained in:
David Allen 2024-08-28 23:29:49 -06:00
parent 341f0752a3
commit 7570f48cad
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -1,6 +1,6 @@
# Maintainer: David J. Allen <davidallendj@gmail.com> # Maintainer: David J. Allen <davidallendj@gmail.com>
pkgname=gdpm-git pkgname=gdpm-git
pkgver=r86.a6635b1 pkgver=r94.341f075
pkgrel=1 pkgrel=1
pkgdesc="CLI tool to automate managing Godot game engine assets from the command-line. This includes a pre-built, static binary." pkgdesc="CLI tool to automate managing Godot game engine assets from the command-line. This includes a pre-built, static binary."
arch=('x86_64') arch=('x86_64')
@ -19,6 +19,12 @@ pkgver() {
prepare() { prepare() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
# remove all links to modules
rm -f include/argparse
rm -f include/tabulate
rm -f include/indicators
rm -f include/csv2
# update and initialize submodules # update and initialize submodules
git submodule update --init modules/argparse git submodule update --init modules/argparse
git submodule update --init modules/tabulate git submodule update --init modules/tabulate
@ -44,3 +50,7 @@ package() {
mkdir -p "${pkgdir}/usr/bin" mkdir -p "${pkgdir}/usr/bin"
install -m755 build/gdpm.static "${pkgdir}/usr/bin/gdpm" install -m755 build/gdpm.static "${pkgdir}/usr/bin/gdpm"
} }
clean() {
rm -rf "$srcdir/$pkgname-$pkgver"
}