69 lines
5.2 KiB
Bash
69 lines
5.2 KiB
Bash
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
|
|
|
DOWNLOAD="https://xorg.freedesktop.org/archive/individual/proto/xorgproto-${BPM_PKG_VERSION}.tar.xz"
|
|
FILENAME="${DOWNLOAD##*/}"
|
|
|
|
# The prepare function is executed in the root of the temp directory
|
|
# This function is used for downloading files and putting them into the correct location
|
|
prepare() {
|
|
wget "$DOWNLOAD"
|
|
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
}
|
|
|
|
# The build function is executed in the source directory
|
|
# This function is used to compile the source code
|
|
build() {
|
|
mkdir build
|
|
cd build
|
|
|
|
meson setup --prefix=/usr ..
|
|
ninja
|
|
}
|
|
|
|
# The package function is executed in the source directory
|
|
# This function is used to move the compiled files into the output directory
|
|
package() {
|
|
cd build
|
|
DESTDIR="$BPM_OUTPUT" ninja install
|
|
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-damageproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-damageproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-fixesproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-fixesproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-glproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-glproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-printproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-printproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-inputproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-inputproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xcmiscproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xcmiscproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-bigreqsproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-bigreqsproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-applewmproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-applewmproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xextproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xextproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xf86vidmodeproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xf86vidmodeproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-renderproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-renderproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xf86dgaproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xf86dgaproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-lg3dproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-lg3dproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-dri3proto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-dri3proto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-trapproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-trapproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-kbproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-kbproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-pmproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-pmproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xwaylandproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xwaylandproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-videoproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-videoproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-dmxproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-dmxproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-presentproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-presentproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-fontcacheproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-fontcacheproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-randrproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-randrproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-compositeproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-compositeproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xf86driproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xf86driproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-scrnsaverproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-scrnsaverproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xf86rushproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xf86rushproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-fontsproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-fontsproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-recordproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-recordproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xineramaproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xineramaproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xf86bigfontproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xf86bigfontproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-windowswmproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-windowswmproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-evieproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-evieproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-dri2proto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-dri2proto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-x11proto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-x11proto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-xf86miscproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-xf86miscproto
|
|
install -Dm644 "$BPM_SOURCE"/COPYING-resourceproto "$BPM_OUTPUT"/usr/share/licenses/xorgproto/COPYING-resourceproto
|
|
}
|