From 242661b737e67e389880571f515f8f65f961ac01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Tue, 15 Nov 2022 17:29:49 +0100 Subject: [PATCH] Update indentation and formatting --- clonezilla-unstable/PKGBUILD | 14 +++++------ obs-vkcapture/PKGBUILD | 46 ++++++++++++++++++------------------ sublime-text-3/PKGBUILD | 38 ++++++++++++++--------------- sublime-text-4/PKGBUILD | 24 +++++++++---------- sublime-text-dev/PKGBUILD | 24 +++++++++---------- 5 files changed, 73 insertions(+), 73 deletions(-) diff --git a/clonezilla-unstable/PKGBUILD b/clonezilla-unstable/PKGBUILD index d3c760f..1223eb9 100644 --- a/clonezilla-unstable/PKGBUILD +++ b/clonezilla-unstable/PKGBUILD @@ -9,24 +9,24 @@ arch=('any') url="https://clonezilla.org" license=('GPL2') depends=('drbl' 'partclone' 'ntfs-3g' 'partimage' 'pigz' 'sshfs' 'parted' - 'gptfdisk' 'dosfstools' 'gzip' 'bzip2' 'pbzip2' 'lbzip2' 'lrzip' - 'xz' 'pixz' 'lzop' 'ecryptfs-utils' 'screen' 'perl' 'cifs-utils') + 'gptfdisk' 'dosfstools' 'gzip' 'bzip2' 'pbzip2' 'lbzip2' 'lrzip' + 'xz' 'pixz' 'lzop' 'ecryptfs-utils' 'screen' 'perl' 'cifs-utils') backup=('etc/drbl/drbl-ocs.conf') conflicts=("${_pkgname}") provides=("${_pkgname}") source=("https://free.nchc.org.tw/drbl-core/src/unstable/${_pkgname}-${pkgver}.tar.xz" - 'usrbin.patch') + 'usrbin.patch') sha256sums=('c6da5fed444286509b6573ad59083968f430660007623be67285e833264841a5' '9340f18b27a1b3b41c4935c5831f6503e4cadf333f03433769906da40a6e38e6') prepare() { - cd "${_pkgname}-${pkgver}" + cd "${_pkgname}-${pkgver}" - patch -Np0 -i "${srcdir}/usrbin.patch" + patch -Np0 -i "${srcdir}/usrbin.patch" } package() { - cd "${_pkgname}-${pkgver}" + cd "${_pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install + make DESTDIR="${pkgdir}" install } diff --git a/obs-vkcapture/PKGBUILD b/obs-vkcapture/PKGBUILD index c3db132..0f707a0 100644 --- a/obs-vkcapture/PKGBUILD +++ b/obs-vkcapture/PKGBUILD @@ -13,37 +13,37 @@ source=("https://github.com/nowrep/$pkgbase/archive/v$pkgver.tar.gz") sha512sums=('55ba0c449cef9c80db82e98a2f6e282dfbf00a7ef0c180e307bd602ae13aadbb0383a38a56dcf4d67ed7ac1e5dd392be7ef71bb1e6f39278da69ed110c159bb0') build() { - cmake -B build -S "$pkgbase-$pkgver" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DCMAKE_INSTALL_DATADIR=/share \ - -DCMAKE_BUILD_TYPE=Release - make -C build -j $(nproc) + cmake -B build -S "$pkgbase-$pkgver" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_DATADIR=/share \ + -DCMAKE_BUILD_TYPE=Release + make -C build -j $(nproc) - export CFLAGS="-m32 ${CFLAGS}" - export CXXFLAGS="-m32 ${CXXFLAGS}" - export LDFLAGS="-m32 ${LDFLAGS}" + export CFLAGS="-m32 ${CFLAGS}" + export CXXFLAGS="-m32 ${CXXFLAGS}" + export LDFLAGS="-m32 ${LDFLAGS}" - cmake -B build32 -S "$pkgbase-$pkgver" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib32 \ - -DCMAKE_INSTALL_DATADIR=/share \ - -DCMAKE_LIBRARY_PATH=/usr/lib32 \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_PLUGIN=OFF - make -C build32 -j $(nproc) + cmake -B build32 -S "$pkgbase-$pkgver" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib32 \ + -DCMAKE_INSTALL_DATADIR=/share \ + -DCMAKE_LIBRARY_PATH=/usr/lib32 \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_PLUGIN=OFF + make -C build32 -j $(nproc) } package_obs-vkcapture() { - pkgdesc='OBS Linux Vulkan/OpenGL game capture' + pkgdesc='OBS Linux Vulkan/OpenGL game capture' - make -C build DESTDIR="$pkgdir" install + make -C build DESTDIR="$pkgdir" install } package_lib32-obs-vkcapture() { - pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)' - depends=('lib32-vulkan-icd-loader' 'lib32-libgl') + pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)' + depends=('lib32-vulkan-icd-loader' 'lib32-libgl') - make -C build32 DESTDIR="$pkgdir" install - rm -r "$pkgdir/usr/bin" + make -C build32 DESTDIR="$pkgdir" install + rm -r "$pkgdir/usr/bin" } diff --git a/sublime-text-3/PKGBUILD b/sublime-text-3/PKGBUILD index 28dad93..cede3fd 100644 --- a/sublime-text-3/PKGBUILD +++ b/sublime-text-3/PKGBUILD @@ -14,29 +14,29 @@ source=("https://download.sublimetext.com/sublime_text_3_build_${pkgver:2}_x64.t sha256sums=('0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee') package() { - cd "${srcdir}" + cd "${srcdir}" - # Adjust naming - sed -i 's#/opt/sublime_text/sublime_text#/opt/sublime_text_3/sublime_text#g' "sublime_text_3/sublime_text.desktop" - sed -i 's#Sublime Text#Sublime Text 3#g' "sublime_text_3/sublime_text.desktop" - sed -i 's#sublime-text#sublime-text-3#g' "sublime_text_3/sublime_text.desktop" + # Adjust naming + sed -i 's#/opt/sublime_text/sublime_text#/opt/sublime_text_3/sublime_text#g' "sublime_text_3/sublime_text.desktop" + sed -i 's#Sublime Text#Sublime Text 3#g' "sublime_text_3/sublime_text.desktop" + sed -i 's#sublime-text#sublime-text-3#g' "sublime_text_3/sublime_text.desktop" - # Install sublime text 3 - install -dm755 "${pkgdir}/opt" - cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3" + # Install sublime text 3 + install -dm755 "${pkgdir}/opt" + cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3" - # Install icons - for res in 128x128 16x16 256x256 32x32 48x48; do - install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" - ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text-3.png" - done + # Install icons + for res in 128x128 16x16 256x256 32x32 48x48; do + install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" + ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text-3.png" + done - # Install desktop entry and executable - sed -i 's#/opt/sublime_text_3/sublime_text#/usr/bin/subl3#g' "sublime_text_3/sublime_text.desktop" + # Install desktop entry and executable + sed -i 's#/opt/sublime_text_3/sublime_text#/usr/bin/subl3#g' "sublime_text_3/sublime_text.desktop" - install -dm755 "${pkgdir}/usr/share/applications" - install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop" + install -dm755 "${pkgdir}/usr/share/applications" + install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop" - install -dm755 "${pkgdir}/usr/bin" - ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3" + install -dm755 "${pkgdir}/usr/bin" + ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3" } diff --git a/sublime-text-4/PKGBUILD b/sublime-text-4/PKGBUILD index 1f76103..2533319 100644 --- a/sublime-text-4/PKGBUILD +++ b/sublime-text-4/PKGBUILD @@ -18,21 +18,21 @@ sha256sums_x86_64=('7de862c38d19367414117110328dded754ac709fed54c8cc5cb0737c894c sha256sums_aarch64=('e33a4d1d51073bdf2f1dc5936ea9b096b078f87230a10a23790beaee702a4a93') package() { - cd "${srcdir}" + cd "${srcdir}" - install -dm755 "${pkgdir}/opt" - cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text" + install -dm755 "${pkgdir}/opt" + cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text" - for res in 128x128 16x16 256x256 32x32 48x48; do - install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" - ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png" - done + for res in 128x128 16x16 256x256 32x32 48x48; do + install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" + ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png" + done - sed -i 's#/opt/sublime_text/sublime_text#/usr/bin/subl#g' 'sublime_text/sublime_text.desktop' + sed -i 's#/opt/sublime_text/sublime_text#/usr/bin/subl#g' 'sublime_text/sublime_text.desktop' - install -dm755 "${pkgdir}/usr/share/applications" - install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop" + install -dm755 "${pkgdir}/usr/share/applications" + install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop" - install -dm755 "${pkgdir}/usr/bin" - ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl" + install -dm755 "${pkgdir}/usr/bin" + ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl" } diff --git a/sublime-text-dev/PKGBUILD b/sublime-text-dev/PKGBUILD index 7e38d31..a7bd0e2 100644 --- a/sublime-text-dev/PKGBUILD +++ b/sublime-text-dev/PKGBUILD @@ -21,21 +21,21 @@ sha256sums_x86_64=('785a3dbf8852ae9d60579e9a755c8507db0e02939794a36f5415b4c1b158 sha256sums_aarch64=('326c12a6dbd21f9d3bf97f464fc182e2dcd917311f4f6a4a73efd0bb949b3243') package() { - cd "${srcdir}" + cd "${srcdir}" - install -dm755 "${pkgdir}/opt" - cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text" + install -dm755 "${pkgdir}/opt" + cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text" - for res in 128x128 16x16 256x256 32x32 48x48; do - install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" - ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png" - done + for res in 128x128 16x16 256x256 32x32 48x48; do + install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" + ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png" + done - sed -i 's#/opt/sublime_text/sublime_text#/usr/bin/subl#g' 'sublime_text/sublime_text.desktop' + sed -i 's#/opt/sublime_text/sublime_text#/usr/bin/subl#g' 'sublime_text/sublime_text.desktop' - install -dm755 "${pkgdir}/usr/share/applications" - install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop" + install -dm755 "${pkgdir}/usr/share/applications" + install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop" - install -dm755 "${pkgdir}/usr/bin" - ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl" + install -dm755 "${pkgdir}/usr/bin" + ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl" }