← recipes

Commit ddcef6a

2
plików
+96
dodanych
-29
usuniętych
@@ -1,29 +0,0 @@
1 -pkgname: layers
2 -pkgver: '1.17.0'
3 -pkgrel: '1'
4 -pkgdesc: 'laye-rs animated scene graph and rendering engine'
5 -url: 'https://github.com/nongio/layers'
6 -arch: x86_64
7 -license:
8 -- MIT
9 -depends: []
10 -makedepends:
11 -- rustc
12 -- cmake
13 -- make
14 -- pkgconf
15 -- xorg-libdrm
16 -- mesa
17 -- wayland
18 -source:
19 -- 'https://github.com/nongio/layers/archive/refs/tags/v${pkgver}.tar.gz'
20 -sha256sums:
21 -- SKIP
22 -build: |
23 - cd layers-${pkgver}
24 - cargo build --release --locked
25 -package: |
26 - cd layers-${pkgver}
27 - install -Dm755 target/release/liblayers.so ${PKGDIR}/usr/lib/liblayers.so
28 - install -Dm644 target/layers.h ${PKGDIR}/usr/include/layers.h
29 - install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
30 0 new file mode 100644
@@ -0,0 +1,96 @@
1 +pkgname: otto
2 +pkgver: '1.3.0'
3 +pkgrel: '1'
4 +pkgdesc: 'Visually-focused Wayland desktop: compositor, bar, launcher, files and settings'
5 +url: 'https://github.com/nongio/otto'
6 +arch: x86_64
7 +license:
8 +- MIT
9 +depends:
10 +- xorg-libdrm
11 +- systemd
12 +- mesa
13 +- libxkbcommon
14 +- wayland
15 +- libinput
16 +- dbus
17 +- seatd
18 +- pipewire
19 +- freetype
20 +- xorg-fontconfig
21 +- xorg-pixman
22 +- noto-fonts
23 +- gstreamer
24 +- gstreamer-plugins-base
25 +makedepends:
26 +- git
27 +- rustc
28 +- llvm
29 +- libdisplay-info
30 +source:
31 +- 'https://github.com/nongio/otto/archive/refs/tags/v${pkgver}.tar.gz'
32 +sha256sums:
33 +- SKIP
34 +build: |
35 + cd otto-${pkgver}
36 + # Upstream nie uzywa -locked; Cargo.lock jest w wydaniu, ale nie wymuszamy go,
37 + # zeby nie przerywac builda przy rozjechanym locku.
38 + unset CFLAGS CXXFLAGS LDFLAGS CPPFLAGS
39 + cargo build --release
40 + for _p in otto-bar otto-islands otto-lock otto-greeter xdg-desktop-portal-otto \
41 + otto-rdp otto-settings otto-files otto-launcher otto-emoji \
42 + otto-quickview otto-media-kit otto-msg; do
43 + cargo build --release -p "${_p}"
44 + done
45 +package: |
46 + cd otto-${pkgver}
47 +
48 + _bin() {
49 + if [ -f "$1" ]; then
50 + install -Dm755 "$1" "${PKGDIR}/usr/bin/$(basename "$1")"
51 + else
52 + echo "uwaga: brak binarki $1" >&2
53 + fi
54 + }
55 +
56 + for _b in otto otto-bar otto-islands otto-lock otto-greeter otto-rdp \
57 + otto-settings otto-files otto-launcher otto-emoji otto-quickview \
58 + otto-msg otto-media-worker; do
59 + _bin "target/release/${_b}"
60 + done
61 +
62 + if [ ! -f "${PKGDIR}/usr/bin/otto" ]; then
63 + echo "brak glownej binarki otto - przerywam" >&2
64 + exit 1
65 + fi
66 +
67 + install -Dm755 target/release/xdg-desktop-portal-otto \
68 + "${PKGDIR}/usr/libexec/xdg-desktop-portal-otto"
69 +
70 + install -Dm644 README.md "${PKGDIR}/usr/share/doc/${pkgname}/README.md"
71 + install -Dm644 LICENSE "${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE"
72 + install -Dm644 components/xdg-desktop-portal-otto/portals.conf.example \
73 + "${PKGDIR}/usr/share/doc/${pkgname}/portals.conf.example"
74 +
75 + install -Dm644 otto_config.example.toml "${PKGDIR}/etc/otto/config.toml"
76 + install -Dm644 otto_config.example.toml "${PKGDIR}/etc/otto/config.example.toml"
77 + install -Dm644 components/otto-lock/otto-lock.pam "${PKGDIR}/etc/pam.d/otto-lock"
78 +
79 + install -Dm644 resources/otto.desktop "${PKGDIR}/usr/share/wayland-sessions/otto.desktop"
80 + install -Dm644 resources/otto-files.desktop "${PKGDIR}/usr/share/applications/otto-files.desktop"
81 + install -Dm644 resources/otto-trash.desktop "${PKGDIR}/usr/share/applications/otto-trash.desktop"
82 + install -Dm644 resources/otto-settings.desktop "${PKGDIR}/usr/share/applications/otto-settings.desktop"
83 +
84 + for _px in 16 24 32 48 64 128 256 512; do
85 + install -Dm644 "components/otto-files/resources/icons/hicolor/${_px}x${_px}/apps/otto-files.png" \
86 + "${PKGDIR}/usr/share/icons/hicolor/${_px}x${_px}/apps/otto-files.png"
87 + done
88 + install -Dm644 components/otto-files/resources/icons/hicolor/scalable/apps/otto-files.svg \
89 + "${PKGDIR}/usr/share/icons/hicolor/scalable/apps/otto-files.svg"
90 +
91 + install -Dm644 components/xdg-desktop-portal-otto/otto.portal \
92 + "${PKGDIR}/usr/share/xdg-desktop-portal/portals/otto.portal"
93 + install -Dm644 components/xdg-desktop-portal-otto/org.freedesktop.impl.portal.desktop.otto.service \
94 + "${PKGDIR}/usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.otto.service"
95 + install -Dm644 components/xdg-desktop-portal-otto/xdg-desktop-portal-otto.service \
96 + "${PKGDIR}/usr/lib/systemd/user/xdg-desktop-portal-otto.service"