Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: libx86emu #6213

Merged
merged 17 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ librewolf-deb
libspa-codec-bluez5-aac-bin
libssl1.1-deb
libtomlplusplus-header
libx86emu
libxapp1-deb
lightpad-git
linked-deb
Expand Down
13 changes: 13 additions & 0 deletions packages/libx86emu/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pkgbase = libx86emu
gives = libx86emu3
pkgver = 3.5
pkgdesc = x86 emulation library
url = https://github.com/wfeldt/libx86emu
arch = amd64
pacdeps = setconf
provides = libx86emu-dev
maintainer = xdavius <[email protected]>
source = git+https://github.com/wfeldt/libx86emu#commit=41aaa2f246d362f6d7dea262052a43141743ead2
sha256sums = SKIP

pkgname = libx86emu
27 changes: 27 additions & 0 deletions packages/libx86emu/libx86emu.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pkgname="libx86emu"
gives=("libx86emu3")
provides=("libx86emu-dev")
pkgver="3.5"
pkgdesc='x86 emulation library'
arch=("amd64")
url='https://github.com/wfeldt/libx86emu'
pacdeps=("setconf")
source=("git+https://github.com/wfeldt/libx86emu#commit=41aaa2f246d362f6d7dea262052a43141743ead2") # tag: 3.5
Xdavius marked this conversation as resolved.
Show resolved Hide resolved
sha256sums=('SKIP')
maintainer=("xdavius <[email protected]>")
external_connection=true

prepare() {
setconf "${pkgname}"/Makefile \
CFLAGS="${CFLAGS}0 -shared -fPIC -fvisibility=hidden -fomit-frame-pointer -w" \
LDFLAGS="-Wl,-shared"
}

build() {
make -C "${pkgname}" LIBDIR=/usr/lib
}

package() {
make -C "${pkgname}" LIBDIR=/usr/lib DESTDIR="${pkgdir}" install
install -Dm644 "${pkgname}"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Loading