Update indentation and formatting
This commit is contained in:
parent
95be8e0fc1
commit
242661b737
5 changed files with 73 additions and 73 deletions
|
@ -9,24 +9,24 @@ arch=('any')
|
||||||
url="https://clonezilla.org"
|
url="https://clonezilla.org"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('drbl' 'partclone' 'ntfs-3g' 'partimage' 'pigz' 'sshfs' 'parted'
|
depends=('drbl' 'partclone' 'ntfs-3g' 'partimage' 'pigz' 'sshfs' 'parted'
|
||||||
'gptfdisk' 'dosfstools' 'gzip' 'bzip2' 'pbzip2' 'lbzip2' 'lrzip'
|
'gptfdisk' 'dosfstools' 'gzip' 'bzip2' 'pbzip2' 'lbzip2' 'lrzip'
|
||||||
'xz' 'pixz' 'lzop' 'ecryptfs-utils' 'screen' 'perl' 'cifs-utils')
|
'xz' 'pixz' 'lzop' 'ecryptfs-utils' 'screen' 'perl' 'cifs-utils')
|
||||||
backup=('etc/drbl/drbl-ocs.conf')
|
backup=('etc/drbl/drbl-ocs.conf')
|
||||||
conflicts=("${_pkgname}")
|
conflicts=("${_pkgname}")
|
||||||
provides=("${_pkgname}")
|
provides=("${_pkgname}")
|
||||||
source=("https://free.nchc.org.tw/drbl-core/src/unstable/${_pkgname}-${pkgver}.tar.xz"
|
source=("https://free.nchc.org.tw/drbl-core/src/unstable/${_pkgname}-${pkgver}.tar.xz"
|
||||||
'usrbin.patch')
|
'usrbin.patch')
|
||||||
sha256sums=('c6da5fed444286509b6573ad59083968f430660007623be67285e833264841a5'
|
sha256sums=('c6da5fed444286509b6573ad59083968f430660007623be67285e833264841a5'
|
||||||
'9340f18b27a1b3b41c4935c5831f6503e4cadf333f03433769906da40a6e38e6')
|
'9340f18b27a1b3b41c4935c5831f6503e4cadf333f03433769906da40a6e38e6')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${_pkgname}-${pkgver}"
|
cd "${_pkgname}-${pkgver}"
|
||||||
|
|
||||||
patch -Np0 -i "${srcdir}/usrbin.patch"
|
patch -Np0 -i "${srcdir}/usrbin.patch"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${_pkgname}-${pkgver}"
|
cd "${_pkgname}-${pkgver}"
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,37 +13,37 @@ source=("https://github.com/nowrep/$pkgbase/archive/v$pkgver.tar.gz")
|
||||||
sha512sums=('55ba0c449cef9c80db82e98a2f6e282dfbf00a7ef0c180e307bd602ae13aadbb0383a38a56dcf4d67ed7ac1e5dd392be7ef71bb1e6f39278da69ed110c159bb0')
|
sha512sums=('55ba0c449cef9c80db82e98a2f6e282dfbf00a7ef0c180e307bd602ae13aadbb0383a38a56dcf4d67ed7ac1e5dd392be7ef71bb1e6f39278da69ed110c159bb0')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cmake -B build -S "$pkgbase-$pkgver" \
|
cmake -B build -S "$pkgbase-$pkgver" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DCMAKE_INSTALL_DATADIR=/share \
|
-DCMAKE_INSTALL_DATADIR=/share \
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
make -C build -j $(nproc)
|
make -C build -j $(nproc)
|
||||||
|
|
||||||
export CFLAGS="-m32 ${CFLAGS}"
|
export CFLAGS="-m32 ${CFLAGS}"
|
||||||
export CXXFLAGS="-m32 ${CXXFLAGS}"
|
export CXXFLAGS="-m32 ${CXXFLAGS}"
|
||||||
export LDFLAGS="-m32 ${LDFLAGS}"
|
export LDFLAGS="-m32 ${LDFLAGS}"
|
||||||
|
|
||||||
cmake -B build32 -S "$pkgbase-$pkgver" \
|
cmake -B build32 -S "$pkgbase-$pkgver" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib32 \
|
-DCMAKE_INSTALL_LIBDIR=lib32 \
|
||||||
-DCMAKE_INSTALL_DATADIR=/share \
|
-DCMAKE_INSTALL_DATADIR=/share \
|
||||||
-DCMAKE_LIBRARY_PATH=/usr/lib32 \
|
-DCMAKE_LIBRARY_PATH=/usr/lib32 \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_PLUGIN=OFF
|
-DBUILD_PLUGIN=OFF
|
||||||
make -C build32 -j $(nproc)
|
make -C build32 -j $(nproc)
|
||||||
}
|
}
|
||||||
|
|
||||||
package_obs-vkcapture() {
|
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() {
|
package_lib32-obs-vkcapture() {
|
||||||
pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)'
|
pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)'
|
||||||
depends=('lib32-vulkan-icd-loader' 'lib32-libgl')
|
depends=('lib32-vulkan-icd-loader' 'lib32-libgl')
|
||||||
|
|
||||||
make -C build32 DESTDIR="$pkgdir" install
|
make -C build32 DESTDIR="$pkgdir" install
|
||||||
rm -r "$pkgdir/usr/bin"
|
rm -r "$pkgdir/usr/bin"
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,29 +14,29 @@ source=("https://download.sublimetext.com/sublime_text_3_build_${pkgver:2}_x64.t
|
||||||
sha256sums=('0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee')
|
sha256sums=('0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}"
|
cd "${srcdir}"
|
||||||
|
|
||||||
# Adjust naming
|
# 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#/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"
|
||||||
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 sublime text 3
|
||||||
install -dm755 "${pkgdir}/opt"
|
install -dm755 "${pkgdir}/opt"
|
||||||
cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3"
|
cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3"
|
||||||
|
|
||||||
# Install icons
|
# Install icons
|
||||||
for res in 128x128 16x16 256x256 32x32 48x48; do
|
for res in 128x128 16x16 256x256 32x32 48x48; do
|
||||||
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
|
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"
|
ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text-3.png"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Install desktop entry and executable
|
# Install desktop entry and executable
|
||||||
sed -i 's#/opt/sublime_text_3/sublime_text#/usr/bin/subl3#g' "sublime_text_3/sublime_text.desktop"
|
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 -dm755 "${pkgdir}/usr/share/applications"
|
||||||
install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop"
|
install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3"
|
ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,21 +18,21 @@ sha256sums_x86_64=('7de862c38d19367414117110328dded754ac709fed54c8cc5cb0737c894c
|
||||||
sha256sums_aarch64=('e33a4d1d51073bdf2f1dc5936ea9b096b078f87230a10a23790beaee702a4a93')
|
sha256sums_aarch64=('e33a4d1d51073bdf2f1dc5936ea9b096b078f87230a10a23790beaee702a4a93')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}"
|
cd "${srcdir}"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/opt"
|
install -dm755 "${pkgdir}/opt"
|
||||||
cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text"
|
cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text"
|
||||||
|
|
||||||
for res in 128x128 16x16 256x256 32x32 48x48; do
|
for res in 128x128 16x16 256x256 32x32 48x48; do
|
||||||
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
|
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"
|
ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png"
|
||||||
done
|
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 -dm755 "${pkgdir}/usr/share/applications"
|
||||||
install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop"
|
install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl"
|
ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl"
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,21 +21,21 @@ sha256sums_x86_64=('785a3dbf8852ae9d60579e9a755c8507db0e02939794a36f5415b4c1b158
|
||||||
sha256sums_aarch64=('326c12a6dbd21f9d3bf97f464fc182e2dcd917311f4f6a4a73efd0bb949b3243')
|
sha256sums_aarch64=('326c12a6dbd21f9d3bf97f464fc182e2dcd917311f4f6a4a73efd0bb949b3243')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}"
|
cd "${srcdir}"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/opt"
|
install -dm755 "${pkgdir}/opt"
|
||||||
cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text"
|
cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text"
|
||||||
|
|
||||||
for res in 128x128 16x16 256x256 32x32 48x48; do
|
for res in 128x128 16x16 256x256 32x32 48x48; do
|
||||||
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
|
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"
|
ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png"
|
||||||
done
|
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 -dm755 "${pkgdir}/usr/share/applications"
|
||||||
install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop"
|
install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl"
|
ln -s '/opt/sublime_text/sublime_text' "${pkgdir}/usr/bin/subl"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue