Delete packaging directory

This commit is contained in:
Chibani 2024-08-07 16:42:24 +02:00 committed by GitHub
parent 1242a320b5
commit 5c9e9db7b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 0 additions and 318 deletions

View File

@ -1,141 +0,0 @@
#!/bin/bash
libnslversion="2.27"
debpkg="libjack-jackd2-0_1.9.12~dfsg-2_amd64.deb"
debpkg2="libc6_2.27-3ubuntu1.6_amd64.deb"
#Download building tools.
if [[ -f /usr/bin/wget ]]
then
if [[ -f pkg2appimage--x86_64.AppImage ]]
then
echo "pkg2appimage--x86_64.AppImage found."
else
wget "https://github.com/AppImage/pkg2appimage/releases/download/continuous/pkg2appimage--x86_64.AppImage"
#Make sure pkg2appimage is available.
if [[ -f pkg2appimage--x86_64.AppImage ]]
then
echo "pkg2appimage--x86_64.AppImage found."
else
echo "failed to download pkg2appimage--x86_64.AppImage" && exit 1
fi
fi
else
echo "please install wget." && exit 1
fi
if [[ -f appimagetool-x86_64.AppImage ]]
then
echo "appimagetool-x86_64.AppImage found."
else
wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
#Make sure appimagetool is available.
if [[ -f appimagetool-x86_64.AppImage ]]
then
echo "appimagetool-x86_64.AppImage found."
else
echo "failed to download appimagetool-x86_64.AppImage" && exit 1
fi
fi
#Make exec.
chmod +x pkg2appimage--x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
#Create BlueRecorder.yml file.
echo "create BlueRecorder.yml"
cat > BlueRecorder.yml <<EOF
app: BlueRecorder
ingredients:
dist: bionic
packages:
- ffmpeg
- x11-utils
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-ugly
- gstreamer1.0-libav
script:
- mkdir -p BlueRecorder.AppDir/usr/bin
- git clone https://github.com/xlmnxp/blue-recorder.git
- cd blue-recorder
- cargo build --release
- cd ..
- cp -r "blue-recorder/po/" "BlueRecorder.AppDir/usr/bin/po/"
- cp -r "blue-recorder/interfaces/" "BlueRecorder.AppDir/usr/bin/interfaces/"
- cp -r "blue-recorder/data/" "BlueRecorder.AppDir/usr/bin/data/"
- cp "blue-recorder/target/release/blue-recorder" "BlueRecorder.AppDir/usr/bin/blue-recorder"
- cd BlueRecorder.AppDir
- ln -s "usr/bin/data/blue-recorder.svg" "blue-recorder.svg"
sources:
- deb http://ly.archive.ubuntu.com/ubuntu/ bionic main universe
script:
- cat > blue-recorder.desktop <<EOF
- [Desktop Entry]
- Type=Application
- Name=Blue Recorder
- Icon=blue-recorder
- Exec=blue-recorder
- Categories=AudioVideo;GTK;
- Comment=A simple desktop recorder for Linux systems. Built using GTK 4 and ffmpeg.
- EOF
EOF
#Building AppImage using pkg2appimage.
echo "Building appimage directory..."
"$PWD/pkg2appimage--x86_64.AppImage" BlueRecorder.yml
rm -rf "$PWD/out"
#Installing libjack to AppDir.
if [[ -f $debpkg ]]
then
echo "$debpkg found."
else
apt download libjack-jackd2-0
if [[ -f $debpkg ]]
then
echo "$debpkg found."
else
echo "failed to download $debpkg" && exit 1
fi
fi
dpkg-deb -x "$debpkg" "$PWD"
mkdir -p "BlueRecorder/BlueRecorder.AppDir/usr/lib/x86_64-linux-gnu/"
cp "usr/lib/x86_64-linux-gnu/libjack.so.0" "BlueRecorder/BlueRecorder.AppDir/usr/lib/x86_64-linux-gnu/libjack.so.0"
#cp "usr/lib/x86_64-linux-gnu/libjack.so.0.1.0" "BlueRecorder/BlueRecorder.AppDirusr/lib/x86_64-linux-gnu/libjack.so.0.1.0"
cp "usr/lib/x86_64-linux-gnu/libjacknet.so.0" "BlueRecorder/BlueRecorder.AppDir/usr/lib/x86_64-linux-gnu/libjacknet.so.0"
cp "usr/lib/x86_64-linux-gnu/libjacknet.so.0.1.0" "BlueRecorder/BlueRecorder.AppDir/usr/lib/x86_64-linux-gnu/libjacknet.so.0.1.0"
cp "usr/lib/x86_64-linux-gnu/libjackserver.so.0" "BlueRecorder/BlueRecorder.AppDir/usr/lib/x86_64-linux-gnu/libjackserver.so.0"
cp "usr/lib/x86_64-linux-gnu/libjackserver.so.0.1.0" "BlueRecorder/BlueRecorder.AppDir/usr/lib/x86_64-linux-gnu/libjackserver.so.0.1.0"
#Installing libnsl to AppDir.
if [[ -f $debpkg2 ]]
then
echo "$debpkg2 found."
else
apt download libc6
if [[ -f $debpkg2 ]]
then
echo "$debpkg2 found."
else
echo "failed to download $debpkg2" && exit 1
fi
fi
dpkg-deb -x "$debpkg2" "$PWD"
mkdir -p "BlueRecorder/BlueRecorder.AppDir/lib/x86_64-linux-gnu/"
cp "lib/x86_64-linux-gnu/libnsl.so.1" "BlueRecorder/BlueRecorder.AppDir/lib/x86_64-linux-gnu/libnsl.so.1"
cp "lib/x86_64-linux-gnu/libnsl-$libnslversion.so" "BlueRecorder/BlueRecorder.AppDir/lib/x86_64-linux-gnu/libnsl-$libnslversion.so"
#Building AppImage using appimagetool.
echo "Building appimage..."
"$PWD/appimagetool-x86_64.AppImage" "BlueRecorder/BlueRecorder.AppDir"
rm -rf "$PWD/BlueRecorder/blue-recorder"
echo "Finish building."

View File

@ -1,38 +0,0 @@
# Maintainer: Salem Yaslem <s@sy.sa>
pkgname="blue-recorder-git"
pkgver=r176.1c6a9a6
pkgrel=1
pkgdesc="A simple desktop recorder for Linux systems. Built using Rust, GTK 4 and ffmpeg. It supports recording audio and video on almost all Linux interfaces with support for Wayland display server on GNOME session."
arch=("x86_64")
url="https://github.com/xlmnxp/blue-recorder"
license=("GPL3")
depends=("ffmpeg" "gstreamer" "gtk4" "pipewire" "xorg-xwininfo")
makedepends=("cargo" "clang" "gettext" "git" "gtk3")
provides=("blue-recorder")
conflicts=("blue-recorder")
source=("$pkgname::git+https://github.com/xlmnxp/blue-recorder.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
cargo build --release --locked --target-dir=target
}
package() {
cd "$pkgname"
desktop-file-install -m 644 --dir "$pkgdir/usr/share/applications/" "$srcdir/$pkgname/data/blue-recorder.desktop"
install -Dm755 "target/release/blue-recorder" "$pkgdir/opt/blue-recorder/blue-recorder"
mkdir -p "$pkgdir/usr/bin/"
ln -s "/opt/blue-recorder/blue-recorder" "$pkgdir/usr/bin/blue-recorder"
install -Dm644 "interfaces/main.ui" "$pkgdir/opt/blue-recorder/interfaces/main.ui"
cp -r "data" "$pkgdir/opt/blue-recorder/data/"
install -Dm644 "data/blue-recorder.png" "$pkgdir/usr/share/pixmaps/blue-recorder.png"
cp -r "po" "$pkgdir/opt/blue-recorder/po/"
}

View File

@ -1,6 +0,0 @@
blue-recorder (1.3.2) stable; urgency=low
* initial release
-- root <root@8bff27fff88c> Thu, 29 Apr 2021 17:14:46 +0000

View File

@ -1 +0,0 @@
9

View File

@ -1,13 +0,0 @@
Source: blue-recorder
Section: video
Priority: optional
Maintainer: Salem Yaslem
Standards-Version: 4.0.0
Build-Depends: debhelper (>= 9.20120311), cargo, clang, gettext, build-essential, libgstreamer-plugins-bad1.0-dev, libgstreamer-plugins-base1.0-dev, libgstreamer1.0-dev
Homepage: https://github.com/xlmnxp/blue-recorder
Package: blue-recorder
Architecture: amd64
Depends: ffmpeg, x11-utils, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-base, gstreamer1.0-plugins-good, gstreamer1.0-plugins-ugly, gstreamer1.0-libav
Replaces: blue-recorder
Description: A simple desktop recorder for Linux systems. Built using Rust, GTK 4 and ffmpeg. It supports recording audio and video on almost all Linux interfaces with support for Wayland display server on GNOME session.

View File

@ -1,30 +0,0 @@
# Salem Yaslem, 2021
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
On Debian systems, the complete text of the GNU General Public License
can be found in `/usr/share/common-licenses/GPL'.
Manual Copyright (C) 1992, 1993, 1996, 2002, 2005-2014 Free Software
Foundation, Inc.
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.3 or any later version published by the Free Software
Foundation; with no Invariant Sections, with no Front-Cover Texts,
and with no Back-Cover Texts. A copy of the license is included
in the section entitled "GNU Free Documentation License".
On Debian systems, the complete text of the GNU Free Documentation
License can be found in `/usr/share/common-licenses/GFDL'.

View File

@ -1,24 +0,0 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_clean:
cargo clean
override_dh_auto_build:
cargo build --release
override_dh_auto_install:
desktop-file-edit --set-icon=blue-recorder "data/blue-recorder.desktop"
install -Dm0644 "data/blue-recorder.desktop" "debian/blue-recorder/usr/share/applications/blue-recorder.desktop"
install -Dm04755 "target/release/blue-recorder" "debian/blue-recorder/opt/blue-recorder/blue-recorder"
cp -r "data" "debian/blue-recorder/opt/blue-recorder/data/"
cp -r "po" "debian/blue-recorder/opt/blue-recorder/po/"
mkdir -p "debian/blue-recorder/usr/bin/"
ln -s "/opt/blue-recorder/blue-recorder"
mv blue-recorder "debian/blue-recorder/usr/bin"
install -Dm0644 "interfaces/main.ui" "debian/blue-recorder/opt/blue-recorder/interfaces/main.ui"
install -Dm0644 "data/blue-recorder.svg" "debian/blue-recorder/usr/share/pixmaps/blue-recorder.svg"

View File

@ -1 +0,0 @@
3.0 (quilt)

View File

@ -1,3 +0,0 @@
version=4
opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/<project>-$1\.tar\.gz/ \
https://github.com/xlmnxp/blue-recorder/tags .*/v?(\d\S+)\.tar\.gz

View File

@ -1,61 +0,0 @@
Name: blue-recorder
Version: 1.3.2
Release: 1%{?dist}
Summary: A simple desktop recorder for Linux systems.
License: GPL-3.0-or-later
URL: https://github.com/xlmnxp/blue-recorder
VCS: https://github.com/xlmnxp/blue-recorder.git
Source: blue-recorder-%{version}.tar
Requires: ffmpeg
Requires: libappindicator-gtk3
Requires: gtk3
Requires: glib2
Requires: xwininfo
Requires: pipewire-pulseaudio
BuildRequires: rust
BuildRequires: cargo
BuildRequires: clang
BuildRequires: gettext
BuildRequires: libappindicator-gtk3-devel
%description
A simple desktop recorder for Linux systems. Built using Rust, GTK+ 3 and ffmpeg. It supports recording audio and video on almost all Linux interfaces with support for Wayland display server on GNOME session.
%global debug_package %{nil}
%prep
%setup -q -n blue-recorder-%{version}
%build
cargo build --release
%install
cat > blue-recorder <<EOF
#!/bin/bash
exec /opt/blue-recorder/blue-recorder
EOF
desktop-file-edit --set-icon=blue-recorder data/blue-recorder.desktop
install -p -D -m755 blue-recorder %{buildroot}%{_bindir}/blue-recorder
install -p -D -m644 data/blue-recorder.desktop %{buildroot}%{_datadir}/applications/blue-recorder.desktop
install -p -D -m644 data/blue-recorder.svg %{buildroot}%{_datadir}/pixmaps/blue-recorder.svg
install -p -D -m644 interfaces/main.ui %{buildroot}/opt/blue-recorder/interfaces/main.ui
cp -r data %{buildroot}/opt/blue-recorder/data
cp -r po %{buildroot}/opt/blue-recorder/po
install -p -D -m755 target/release/blue-recorder %{buildroot}/opt/blue-recorder/blue-recorder
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/blue-recorder.desktop
%files
%{_bindir}/blue-recorder
%{_datadir}/applications/blue-recorder.desktop
%{_datadir}/pixmaps/blue-recorder.svg
%dir /opt/blue-recorder/
/opt/blue-recorder/interfaces/main.ui
/opt/blue-recorder/data
/opt/blue-recorder/po
/opt/blue-recorder/blue-recorder