Skip to content
Open
Changes from all 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
75 changes: 75 additions & 0 deletions linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
version: "1"

package:
id: net.launchpad.catfish.uos
name: catfish
version: 4.20.0.1
kind: app
description: |
Catfish is a versatile file searching tool. The interface is
intentionally lightweight and simple, using only Gtk+3.

command:
- /opt/apps/net.launchpad.catfish.uos/files/bin/catfish

base: org.deepin.base/25.2.2

sources:
- kind: archive
name: catfish
url: https://share.cicd.getdeepin.org/ziggy-pool/linyaps-apps-packaging-CI/25M8.top500-init.stage-1.sysRepo/catfish_4.20.0.orig.tar.bz2
digest: 3938a3cd5a9ecd75c9c7777f7204f8e4cfcb9960203ffd8c2df7d08d11a73a6e

build: |
set -e
cd /project/linglong/sources/catfish/catfish-4.20.0

meson setup build --prefix=${PREFIX}
ninja -C build -j$(nproc)
ninja -C build install

# Keep the original entrypoint (it self-adjusts site paths for the app's
# python modules) and install a launcher that sets PYTHONPATH and
# GI_TYPELIB_PATH so the bundled modules/typelibs are found at runtime.
mv ${PREFIX}/bin/catfish ${PREFIX}/bin/catfish-real
cat > ${PREFIX}/bin/catfish <<EOF
#!/bin/sh
export PYTHONPATH="${PREFIX}/lib/python3/dist-packages:\${PYTHONPATH}"
export GI_TYPELIB_PATH="${PREFIX}/lib/x86_64-linux-gnu/girepository-1.0:\${GI_TYPELIB_PATH}"
exec "${PREFIX}/bin/catfish-real" "\$@"
EOF
chmod +x ${PREFIX}/bin/catfish

buildext:
apt:
build_depends:
- build-essential
- meson
- ninja-build
- pkg-config
- gettext
- desktop-file-utils
- python3-dev
- python3-gi
- python3-pexpect
- python3-dbus
- libgtk-3-dev
- libxfconf-0-dev
- gir1.2-gtk-3.0
- gir1.2-glib-2.0
- gir1.2-gdkpixbuf-2.0
- gir1.2-pango-1.0
- gir1.2-xfconf-0
depends:
- python3
- python3-gi
- python3-gi-cairo
- python3-pexpect
- python3-dbus
- libgtk-3-0
- libxfconf-0-3
- gir1.2-gtk-3.0
- gir1.2-glib-2.0
- gir1.2-gdkpixbuf-2.0
- gir1.2-pango-1.0
- gir1.2-xfconf-0