mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ci: Merge in debian package files
This commit is contained in:
committed by
mborgerson
parent
b279d57c09
commit
2f89811681
@@ -168,15 +168,8 @@ jobs:
|
||||
run: |
|
||||
mkdir src
|
||||
tar -C src -xf src.tar.gz
|
||||
- name: Clone Debian packaging
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: deb
|
||||
path: debian-tmp
|
||||
- name: Integrate Debian packaging
|
||||
- name: Create debian changelog
|
||||
run: |
|
||||
mv debian-tmp/debian src
|
||||
rm -rf debian-tmp
|
||||
pushd src
|
||||
echo -e "\
|
||||
xemu (1:$(cat XEMU_VERSION)-0) unstable; urgency=medium\n\
|
||||
@@ -420,15 +413,8 @@ jobs:
|
||||
run: |
|
||||
mkdir src
|
||||
tar -C src -xf src.tar.gz
|
||||
- name: Clone Debian packaging
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: deb
|
||||
path: debian-tmp
|
||||
- name: Integrate Debian packaging
|
||||
run: |
|
||||
mv debian-tmp/debian src
|
||||
rm -rf debian-tmp
|
||||
pushd src
|
||||
echo -e "\
|
||||
xemu (1:$(cat XEMU_VERSION)-0) unstable; urgency=medium\n\
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
# Run from xemu root
|
||||
set -e
|
||||
set -x
|
||||
|
||||
BUILD_DIR=/tmp/xemu-deb-build
|
||||
XEMU_VERSION_TAG=0.0.0
|
||||
PKG_NAME=xemu_${XEMU_VERSION_TAG}
|
||||
|
||||
# Remove previous build artifacts, create build dir
|
||||
rm -rf $BUILD_DIR
|
||||
mkdir -p $BUILD_DIR
|
||||
|
||||
# Create source tarball
|
||||
tar -czf $BUILD_DIR/${PKG_NAME}.orig.tar.gz --transform "s#^#${PKG_NAME}/#" .
|
||||
pushd $BUILD_DIR
|
||||
|
||||
# Build .deb
|
||||
tar xf ${PKG_NAME}.orig.tar.gz
|
||||
cd ${PKG_NAME}
|
||||
|
||||
# Create a changelog with current version
|
||||
echo -e "xemu (1:${XEMU_VERSION_TAG}-0) unstable; urgency=medium\n" > debian/changelog
|
||||
echo -e " Built from $(git describe --match 'xemu-v*')\n" >> debian/changelog
|
||||
echo " -- Matt Borgerson <contact@mborgerson.com> $(date -R)" >> debian/changelog
|
||||
|
||||
# Place specific repo version in control file
|
||||
echo -e " .\n This package was built from $(git describe --match 'xemu-v*') on $(date -R)\n" >> debian/control
|
||||
|
||||
debuild --preserve-env -us -uc
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
xemu (1:0.5.2-18-g12b58544b1-0) unstable; urgency=medium
|
||||
|
||||
Built from 0.5.2-18-g12b58544b1
|
||||
|
||||
-- Matt Borgerson <contact@mborgerson.com> Tue, 25 May 2021 01:43:41 +0000
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
11
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
Source: xemu
|
||||
Section: games
|
||||
Priority: optional
|
||||
Maintainer: Matt Borgerson <contact@mborgerson.com>
|
||||
Build-Depends: debhelper (>= 11),
|
||||
git,
|
||||
python3:any,
|
||||
python3-yaml,
|
||||
ninja-build,
|
||||
libgtk-3-dev,
|
||||
libepoxy-dev,
|
||||
libpixman-1-dev,
|
||||
libsdl2-dev,
|
||||
libsamplerate0-dev,
|
||||
zlib1g-dev,
|
||||
libssl-dev,
|
||||
libpcap-dev,
|
||||
libslirp-dev,
|
||||
Standards-Version: 3.9.8
|
||||
Homepage: https://xemu.app
|
||||
XS-Debian-Vcs-Browser: https://github.com/mborgerson/xemu
|
||||
XS-Debian-Vcs-Git: https://github.com/mborgerson/xemu.git
|
||||
Vcs-Browser: https://github.com/mborgerson/xemu
|
||||
Vcs-Git: https://github.com/mborgerson/xemu.git
|
||||
|
||||
Package: xemu
|
||||
Architecture: amd64 arm arm64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel mips64 mips64el powerpc powerpcspe ppc64 ppc64el riscv64 s390x sparc sparc64 x32
|
||||
Multi-Arch: foreign
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Provides: xemu
|
||||
Description: Original Xbox emulator
|
||||
An open-source, cross-platform application that emulates the hardware of the
|
||||
original Xbox game console.
|
||||
Vendored
+547
File diff suppressed because it is too large
Load Diff
Vendored
+84
@@ -0,0 +1,84 @@
|
||||
#!/usr/bin/make -f
|
||||
SHELL = /bin/sh -e
|
||||
|
||||
# in order to keep output non-intermixed together, disable parallel building
|
||||
# of different targets in this d/rules but allow running parallel submakes
|
||||
.NOTPARALLEL:
|
||||
|
||||
# get DEB_VERSION
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
# get DEB_HOST_ARCH DEB_HOST_ARCH_OS DEB_HOST_GNU_TYPE DEB_HOST_MULTIARCH DEB_BUILD_GNU_TYPE
|
||||
include /usr/share/dpkg/architecture.mk
|
||||
# get CFLAGS LDFLAGS etc
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
|
||||
libdir = /usr/lib/${DEB_HOST_MULTIARCH}
|
||||
|
||||
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
|
||||
VENDOR := UBUNTU
|
||||
DEB_BUILD_PARALLEL = yes
|
||||
else
|
||||
VENDOR := DEBIAN
|
||||
endif
|
||||
|
||||
# support parallel build using DEB_BUILD_OPTIONS=parallel=N
|
||||
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||||
MAKEFLAGS += -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||||
endif
|
||||
|
||||
# verbose build
|
||||
V ?= 1
|
||||
|
||||
sysdatadir = debian/xemu/usr/share/xemu
|
||||
|
||||
# we add another set of configure options from debian/control
|
||||
common_configure_opts = \
|
||||
--with-pkgversion="Debian $(DEB_VERSION)" \
|
||||
--extra-cflags="$(CFLAGS) $(CPPFLAGS)" --extra-ldflags="$(LDFLAGS) -Wl,--as-needed" \
|
||||
--localstatedir=/var
|
||||
|
||||
# Cross compiling support
|
||||
ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
|
||||
common_configure_opts += --cross-prefix=$(DEB_HOST_GNU_TYPE)-
|
||||
endif
|
||||
|
||||
ifneq ($(filter $(DEB_HOST_ARCH),i386 x32),)
|
||||
# XXX as of 2020-04-29, i386 buildd fails to link -static-pie executable:
|
||||
# /usr/bin/ld: /usr/lib/i386-linux-gnu/libc.a(memset_chk-nonshared.o):
|
||||
# unsupported non-PIC call to IFUNC `memset'
|
||||
# so disable PIE for qemu-user-static build on i386 for now.
|
||||
# On x32 -static-pie fails in different way.
|
||||
# On amd64 -static-pie appears to work fine.
|
||||
# On other architectures qemu correctly detect that -static-pie is not available
|
||||
XXXstaticpie = --disable-pie
|
||||
else
|
||||
XXXstaticpie =
|
||||
endif
|
||||
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
|
||||
override_dh_auto_build:
|
||||
./build.sh ${XEMU_BUILD_OPTIONS} ${common_configure_opts} || \
|
||||
{ echo ===== BUILD FAILED ===; tail -n 50 config.log; exit 1; }
|
||||
cp debian/copyright debian/qemu.deb.copyright
|
||||
cp dist/LICENSE.txt debian/copyright
|
||||
|
||||
override_dh_auto_test:
|
||||
|
||||
override_dh_auto_install:
|
||||
# mkdir -p $(sysdatadir)
|
||||
# cp -r dist/data $(sysdatadir)
|
||||
install -DT debian/qemu.deb.copyright debian/xemu/usr/share/doc/xemu/qemu.deb.copyright
|
||||
install -DTm 0755 dist/xemu debian/xemu/usr/bin/xemu
|
||||
install -DT ui/xemu.desktop debian/xemu/usr/share/applications/xemu.desktop
|
||||
install -DT ui/icons/xemu_16x16.png debian/xemu/usr/share/icons/hicolor/16x16/apps/xemu.png
|
||||
install -DT ui/icons/xemu_24x24.png debian/xemu/usr/share/icons/hicolor/24x24/apps/xemu.png
|
||||
install -DT ui/icons/xemu_32x32.png debian/xemu/usr/share/icons/hicolor/32x32/apps/xemu.png
|
||||
install -DT ui/icons/xemu_48x48.png debian/xemu/usr/share/icons/hicolor/48x48/apps/xemu.png
|
||||
install -DT ui/icons/xemu_256x256.png debian/xemu/usr/share/icons/hicolor/256x256/apps/xemu.png
|
||||
install -DT ui/icons/xemu_512x512.png debian/xemu/usr/share/icons/hicolor/512x512/apps/xemu.png
|
||||
install -DT ui/icons/xemu.svg debian/xemu/usr/share/icons/hicolor/scalable/apps/xemu.svg
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
Vendored
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
# ignore sources which are in submodules in upstream git
|
||||
extend-diff-ignore ^capstone/|^dtc/|^slirp/|^roms/.*/
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
version=4
|
||||
|
||||
opts=\
|
||||
dversionmangle=auto,\
|
||||
repacksuffix=+dfsg,\
|
||||
uversionmangle=s/-rc/~rc/;s/(\d+)\.(\d+)\.(\d+)/$1.$2/g,\
|
||||
compression=xz \
|
||||
https://download.qemu.org/ qemu-@ANY_VERSION@@ARCHIVE_EXT@
|
||||
Reference in New Issue
Block a user