-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,30 +49,32 @@ RUN git clone https://github.com/OctoMap/octomap.git -b 'v1.10.0' \ | |
&& cmake --build octomap/build --target install --parallel \ | ||
&& rm -rf octomap | ||
|
||
# Create a dummy package for octomap | ||
# Switch to builder user to create and install the dummy package | ||
USER builder | ||
|
||
# Create a dummy package for octomap | ||
RUN mkdir -p /tmp/dummy-octomap/aur/dummy-octomap && \ | ||
cd /tmp/dummy-octomap/aur/dummy-octomap && \ | ||
echo " \ | ||
# Maintainer: Jeongseok Lee <[email protected]> \n\ | ||
pkgname=dummy-octomap \n\ | ||
pkgver=1.9.8 \n\ | ||
pkgrel=1 \n\ | ||
pkgdesc='A dummy package to satisfy octomap dependency' \n\ | ||
arch=('any') \n\ | ||
provides=('octomap') \n\ | ||
conflicts=('octomap') \n\ | ||
source=() \n\ | ||
noextract=() \n\ | ||
md5sums=('SKIP') \n\ | ||
package() { \n\ | ||
: \n\ | ||
} \n\ | ||
" > PKGBUILD && \ | ||
cat <<EOF > PKGBUILD | ||
# Maintainer: Jeongseok Lee <[email protected]> | ||
pkgname=dummy-octomap | ||
pkgver=1.9.8 | ||
pkgrel=1 | ||
pkgdesc='A dummy package to satisfy octomap dependency' | ||
arch=('any') | ||
provides=('octomap') | ||
conflicts=('octomap') | ||
source=() | ||
noextract=() | ||
md5sums=('SKIP') | ||
package() { | ||
: | ||
} | ||
EOF | ||
makepkg -si --noconfirm && \ | ||
cd / && \ | ||
rm -rf /tmp/dummy-octomap | ||
|
||
# Switch back to root to install remaining dependencies | ||
USER root | ||
|
||
|