mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Initial build for AUR based on Debian binary package instructions
This commit is contained in:
commit
923ab1068c
3 changed files with 95 additions and 0 deletions
13
.SRCINFO
Normal file
13
.SRCINFO
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
pkgbase = remotepc-bin
|
||||
pkgdesc = Access your remote computer from any Windows, Mac, or Linux computer, iOS or Android device, or via the web
|
||||
pkgver = 4.5.1
|
||||
pkgrel = 1
|
||||
url = https://www.remotepc.com
|
||||
install = services.install
|
||||
arch = x86_64
|
||||
license = custom
|
||||
provides = remotepc
|
||||
source = remotepc.deb::https://static.remotepc.com/downloads/rpc/310320/remotepc.deb
|
||||
sha1sums = ff6e8cb33dd0723bff9e51b65e5ab2808fdad5bb
|
||||
|
||||
pkgname = remotepc-bin
|
||||
53
PKGBUILD
Normal file
53
PKGBUILD
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# Maintainer: flan_suse <windows2linux_AT_zoho_DOT_com>
|
||||
|
||||
pkgname=remotepc-bin
|
||||
altpkgname=remotepc
|
||||
pkgver=4.5.1
|
||||
pkgrel=1
|
||||
provides=('remotepc')
|
||||
pkgdesc="Access your remote computer from any Windows, Mac, or Linux computer, iOS or Android device, or via the web"
|
||||
arch=('x86_64')
|
||||
url="https://www.remotepc.com"
|
||||
dlurl="https://static.remotepc.com/downloads"
|
||||
shortname="rpc"
|
||||
internalnum="310320"
|
||||
license=('custom')
|
||||
install="services.install"
|
||||
source=(${altpkgname}.deb::${dlurl}/${shortname}/${internalnum}/${altpkgname}.deb)
|
||||
sha1sums=('ff6e8cb33dd0723bff9e51b65e5ab2808fdad5bb')
|
||||
|
||||
package() {
|
||||
cd ${srcdir}
|
||||
|
||||
# Extract files from the .deb archive
|
||||
ar xvf ${altpkgname}.deb
|
||||
tar xvf data.tar.xz
|
||||
tar xvf control.tar.gz
|
||||
|
||||
# Copy directories exactly as found in the .deb archive instructions
|
||||
cp -rv "${srcdir}/opt" "${pkgdir}"
|
||||
cp -rv "${srcdir}/usr" "${pkgdir}"
|
||||
|
||||
# Prepare files and directories based on .deb archive instructions
|
||||
touch "${pkgdir}/opt/remotepc/chrome-sandbox"
|
||||
chmod 4755 "${pkgdir}/opt/remotepc/chrome-sandbox"
|
||||
touch "${pkgdir}/opt/remotepc/resources/isTnCAccepted"
|
||||
chmod ugo+rwx "${pkgdir}/opt/remotepc/resources/isTnCAccepted"
|
||||
|
||||
# Prepare services directories and copy systemd units from /opt/ directory in .deb archive
|
||||
mkdir -pv "${pkgdir}/etc/systemd/system"
|
||||
mkdir -pv "${pkgdir}/etc/systemd/user"
|
||||
mkdir -pv "${pkgdir}/usr/bin"
|
||||
|
||||
cp -fv "${pkgdir}/opt/remotepc/remotepc.service" "${pkgdir}/etc/systemd/system/"
|
||||
cp -fv "${pkgdir}/opt/remotepc/remotepc_installer.service" "${pkgdir}/etc/systemd/system/"
|
||||
cp -fv "${pkgdir}/opt/remotepc/remotepc-desktop.service" "${pkgdir}/etc/systemd/user/"
|
||||
|
||||
# Make symlink to binary executable
|
||||
ln -sfv "${pkgdir}/opt/remotepc/remotepc" "${pkgdir}/usr/bin/remotepc"
|
||||
|
||||
# Prepare exclusive log directory
|
||||
mkdir -pv "${pkgdir}/var/log/remotepc/remotePrinter"
|
||||
chmod 777 "${pkgdir}/var/log/remotepc/remotePrinter"
|
||||
}
|
||||
|
||||
29
services.install
Normal file
29
services.install
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
post_install() {
|
||||
|
||||
# Enable and start remotepc systemd service
|
||||
systemctl daemon-reload
|
||||
systemctl enable remotepc.service
|
||||
systemctl restart remotepc.service
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
pre_remove() {
|
||||
|
||||
# Stop and distable remotepc systemd service
|
||||
systemctl stop remotepc.service
|
||||
systemctl disable remotepc.service
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
post_remove() {
|
||||
|
||||
# Some newly created (residual) ROOT "config" files leftover?
|
||||
# Yet, USER config files remain under $HOME/.config/remotepc/
|
||||
# /opt/remotepc is no longer needed
|
||||
rm -rf /opt/remotepc
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue