Skip to content

Commit

Permalink
ci: Merge in debian package files
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Jul 21, 2024
1 parent b279d57 commit 2f89811
Show file tree
Hide file tree
Showing 12 changed files with 712 additions and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down Expand Up @@ -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\
Expand Down
30 changes: 30 additions & 0 deletions debian/build_deb.sh
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> $(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
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
xemu (1:0.5.2-18-g12b58544b1-0) unstable; urgency=medium

Built from 0.5.2-18-g12b58544b1

-- Matt Borgerson <[email protected]> Tue, 25 May 2021 01:43:41 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
33 changes: 33 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Source: xemu
Section: games
Priority: optional
Maintainer: Matt Borgerson <[email protected]>
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.
Loading

0 comments on commit 2f89811

Please sign in to comment.