Skip to content

Commit

Permalink
Add wine base app
Browse files Browse the repository at this point in the history
  • Loading branch information
ermshiperete committed Dec 27, 2018
1 parent 746ea89 commit 258caf7
Showing 1 changed file with 124 additions and 0 deletions.
124 changes: 124 additions & 0 deletions de.ermshiperete.wine.BaseApp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
id: de.ermshiperete.wine.BaseApp
branch: 4.0

runtime: org.freedesktop.Platform
runtime-version: 1.6
sdk: org.freedesktop.Sdk

platform-extensions:
- org.freedesktop.Platform.Locale

inherit-extensions:
- org.freedesktop.Platform.GL
- org.freedesktop.Platform.Timezones
- org.freedesktop.Platform.GStreamer
- org.freedesktop.Platform.VAAPI.Intel
- org.freedesktop.Sdk.Extension

finish-args:
- --allow=multiarch
- --env=PATH=/app/bin:/app/lib/wine/bin:/app/lib/wine-32bit/bin:/app/lib/32bit/wine:/usr/lib/wine/bin:/usr/lib/wine-32bit/bin:/usr/bin:/usr/lib/32bit/bin
- --env=XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/share
- --env=WINEDEBUG=-all
- --env=WINEPREFIX=/var/data/wine

cleanup:
- /man
- /share/man

cleanup-commands:
- /usr/libexec/freedesktop-post.sh

cleanup-platform:
- /include
- /share/aclocal
- /share/pkgconfig
- /lib/pkgconfig

cleanup-platform-commands:
- /usr/libexec/freedesktop-post.sh

build-options:
cflags: -O2 -g -fstack-protector-strong -D_FORTIFY_SOURCE=2
cxxflags: -O2 -g -fstack-protector-strong -D_FORTIFY_SOURCE=2
ldflags: -fstack-protector-strong -Wl,-z,relro,-z,now
prefix: /app
env:
V: '1'

modules:
- name: platform-setup
buildsystem: simple
build-commands:
- mkdir -p /app/lib/32bit
- mkdir -p /app/lib/wine
- mkdir -p /app/lib/extension

- name: wine-win32
only-arches:
- i386
config-opts:
- --disable-win64
- --disable-win16
- --disable-tests
- --with-x
- --without-ldap
- --without-cups
- --without-curses
- --without-capi
- --without-glu
- --without-gphoto
- --without-gsm
- --without-hal
- --without-netapi
- --without-opencl
- --without-pcap
- --without-udev
- --without-v4l
- --prefix=/app
cleanup:
- /bin/function_grep.pl
- /include
- /share/man
- /share/applications
sources:
- type: archive
url: https://dl.winehq.org/wine/source/4.0/wine-4.0-rc3.tar.xz
sha256: fce4ce3cf32c29742bc836b8197b2b7ee6b32423b8c883e08c77cc65bf6dcc9c

- name: wine-gecko
buildsystem: simple
build-commands:
- install -D --target-directory=/app/share/wine/gecko/ wine_gecko-*.msi
no-make-install: true
sources:
- type: file
url: https://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86.msi
sha256: 3b8a361f5d63952d21caafd74e849a774994822fb96c5922b01d554f1677643a

- name: wine-mono
buildsystem: simple
build-commands:
- install -D --target-directory=/app/share/wine/mono/ wine-mono-*.msi
no-make-install: true
sources:
- type: file
url: https://dl.winehq.org/wine/wine-mono/4.7.1/wine-mono-4.7.1.msi
sha256: 2c8d5db7f833c3413b2519991f5af1f433d59a927564ec6f38a3f1f8b2c629aa

- name: cabextract
buildsystem: autotools
sources:
- type: archive
url: https://www.cabextract.org.uk/cabextract-1.6.tar.gz
sha256: cee661b56555350d26943c5e127fc75dd290b7f75689d5ebc1f04957c4af55fb

- name: winetricks
buildsystem: simple
build-commands:
- make
- make PREFIX=/app install
sources:
- type: archive
url: https://github.com/Winetricks/winetricks/archive/20181203.zip
sha256: 900892ca913fcabfb574fcfdce19d8410372919faad2dfb320770cf5196b65cc

0 comments on commit 258caf7

Please sign in to comment.