Compare commits
2 Commits
38c2e48bbc
...
f5522d6e83
Author | SHA1 | Date |
---|---|---|
Felipe M | f5522d6e83 | |
Felipe M | c7e242d67a |
|
@ -1,11 +1,11 @@
|
||||||
FROM docker.io/archlinux/base:latest
|
FROM docker.io/archlinux:latest
|
||||||
LABEL MAINTAINER "Felipe Martin <me@fmartingr.com>"
|
LABEL MAINTAINER "Felipe Martin <me@fmartingr.com>"
|
||||||
|
|
||||||
COPY requirements.txt /tmp/requirements.txt
|
COPY requirements.txt /tmp/requirements.txt
|
||||||
|
|
||||||
RUN pacman -Syyu --noconfirm python python-pip base-devel
|
RUN pacman -Syyu --noconfirm python python-pip base-devel
|
||||||
RUN pip install -r /tmp/requirements.txt
|
RUN pip install -r /tmp/requirements.txt
|
||||||
RUN useradd builder -u 1000
|
RUN useradd builder -u 1000
|
||||||
RUN chown -R 1000:1000 /tmp
|
RUN chown -R 1000:1000 /tmp
|
||||||
RUN echo "builder ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/builder
|
RUN echo "builder ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/builder
|
||||||
RUN echo "nameserver 9.9.9.9" > /etc/resolv.conf
|
RUN echo "nameserver 9.9.9.9" > /etc/resolv.conf
|
||||||
|
|
4
build.py
4
build.py
|
@ -16,7 +16,7 @@ PACKAGE_FILE = f"/tmp/{PACKAGE_NAME}/package.toml"
|
||||||
package = toml.load(PACKAGE_FILE)
|
package = toml.load(PACKAGE_FILE)
|
||||||
print(
|
print(
|
||||||
huepy.run(
|
huepy.run(
|
||||||
f'Building {PACKAGE_NAME} v{package["version"]}-{package["build_number"]}'
|
f'Building {PACKAGE_NAME} v{package["version"]}_{package["build_number"]}-{package["aur_build"]}'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ else:
|
||||||
pkgbuild_template = env.get_template("PKGBUILD")
|
pkgbuild_template = env.get_template("PKGBUILD")
|
||||||
pkgbuild = pkgbuild_template.render(**package)
|
pkgbuild = pkgbuild_template.render(**package)
|
||||||
|
|
||||||
build_path = BUILDS_PATH / Path("{version}-{build_number}".format(**package))
|
build_path = BUILDS_PATH / Path("{version}_{build_number}-{aur_build}".format(**package))
|
||||||
os.makedirs(build_path, exist_ok=True)
|
os.makedirs(build_path, exist_ok=True)
|
||||||
|
|
||||||
print(huepy.info(f"Writing PKGBUILD file..."))
|
print(huepy.info(f"Writing PKGBUILD file..."))
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
pkgbase = synology-drive
|
||||||
|
pkgdesc = Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers.
|
||||||
|
pkgver = 3.0.1_12667
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://www.synology.com
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
license = custom
|
||||||
|
depends = glibc
|
||||||
|
optdepends = nautilus: For nautilus integration
|
||||||
|
source_i686 = https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12667/Ubuntu/Installer/i686/synology-drive-client-12667.i686.deb
|
||||||
|
md5sums_i686 = aa8c94068881f0892e14e3798008feff
|
||||||
|
source_x86_64 = https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12667/Ubuntu/Installer/x86_64/synology-drive-client-12667.x86_64.deb
|
||||||
|
md5sums_x86_64 = a41b48ea0dd03341a42991574e8b4e9d
|
||||||
|
|
||||||
|
pkgname = synology-drive
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Maintainer: Felipe Martin <me@fmartingr.com>
|
||||||
|
|
||||||
|
pkgname="synology-drive"
|
||||||
|
pkgver="3.0.1_12667"
|
||||||
|
pkgrel="1"
|
||||||
|
pkgdesc="Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers."
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="https://www.synology.com"
|
||||||
|
license=('custom')
|
||||||
|
depends=('glibc' )
|
||||||
|
optdepends=('nautilus: For nautilus integration' )
|
||||||
|
conflicts=()
|
||||||
|
source=()
|
||||||
|
md5sums=()
|
||||||
|
|
||||||
|
source_i686=(https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12667/Ubuntu/Installer/i686/synology-drive-client-12667.i686.deb)
|
||||||
|
md5sums_i686=('aa8c94068881f0892e14e3798008feff')
|
||||||
|
|
||||||
|
source_x86_64=(https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12667/Ubuntu/Installer/x86_64/synology-drive-client-12667.x86_64.deb)
|
||||||
|
md5sums_x86_64=('a41b48ea0dd03341a42991574e8b4e9d')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}"
|
||||||
|
tar -xJf data.tar.xz -C "${pkgdir}"
|
||||||
|
ls "${pkgdir}"
|
||||||
|
install -Dm 644 "${pkgdir}"/opt/Synology/SynologyDrive/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
pkgbase = synology-drive
|
||||||
|
pkgdesc = Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers.
|
||||||
|
pkgver = 3.0.1_12674
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://www.synology.com
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
license = custom
|
||||||
|
depends = glibc
|
||||||
|
optdepends = nautilus: For nautilus integration
|
||||||
|
source_i686 = https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12674/Ubuntu/Installer/i686/synology-drive-client-12674.i686.deb
|
||||||
|
md5sums_i686 = c115be98f2a947bf5e031d875a4ca27b
|
||||||
|
source_x86_64 = https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12674/Ubuntu/Installer/x86_64/synology-drive-client-12674.x86_64.deb
|
||||||
|
md5sums_x86_64 = ad325ccf5e354af8f7eff264f826ea2b
|
||||||
|
|
||||||
|
pkgname = synology-drive
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Maintainer: Felipe Martin <me@fmartingr.com>
|
||||||
|
|
||||||
|
pkgname="synology-drive"
|
||||||
|
pkgver="3.0.1_12674"
|
||||||
|
pkgrel="1"
|
||||||
|
pkgdesc="Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers."
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="https://www.synology.com"
|
||||||
|
license=('custom')
|
||||||
|
depends=('glibc' )
|
||||||
|
optdepends=('nautilus: For nautilus integration' )
|
||||||
|
conflicts=()
|
||||||
|
source=()
|
||||||
|
md5sums=()
|
||||||
|
|
||||||
|
source_i686=(https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12674/Ubuntu/Installer/i686/synology-drive-client-12674.i686.deb)
|
||||||
|
md5sums_i686=('c115be98f2a947bf5e031d875a4ca27b')
|
||||||
|
|
||||||
|
source_x86_64=(https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.1-12674/Ubuntu/Installer/x86_64/synology-drive-client-12674.x86_64.deb)
|
||||||
|
md5sums_x86_64=('ad325ccf5e354af8f7eff264f826ea2b')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}"
|
||||||
|
tar -xJf data.tar.xz -C "${pkgdir}"
|
||||||
|
ls "${pkgdir}"
|
||||||
|
install -Dm 644 "${pkgdir}"/opt/Synology/SynologyDrive/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
pkgbase = synology-drive
|
||||||
|
pkgdesc = Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers.
|
||||||
|
pkgver = 3.0.2_12682
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://www.synology.com
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
license = custom
|
||||||
|
depends = glibc
|
||||||
|
optdepends = nautilus: For nautilus integration
|
||||||
|
source_i686 = https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.2-12682/Ubuntu/Installer/i686/synology-drive-client-12682.i686.deb
|
||||||
|
md5sums_i686 = 3bd9a43774551e50062da596959ffae8
|
||||||
|
source_x86_64 = https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.2-12682/Ubuntu/Installer/x86_64/synology-drive-client-12682.x86_64.deb
|
||||||
|
md5sums_x86_64 = d1ff4105630fa710b6175af04ea45119
|
||||||
|
|
||||||
|
pkgname = synology-drive
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Maintainer: Felipe Martin <me@fmartingr.com>
|
||||||
|
|
||||||
|
pkgname="synology-drive"
|
||||||
|
pkgver="3.0.2_12682"
|
||||||
|
pkgrel="1"
|
||||||
|
pkgdesc="Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers."
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="https://www.synology.com"
|
||||||
|
license=('custom')
|
||||||
|
depends=('glibc' )
|
||||||
|
optdepends=('nautilus: For nautilus integration' )
|
||||||
|
conflicts=()
|
||||||
|
source=()
|
||||||
|
md5sums=()
|
||||||
|
|
||||||
|
source_i686=(https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.2-12682/Ubuntu/Installer/i686/synology-drive-client-12682.i686.deb)
|
||||||
|
md5sums_i686=('3bd9a43774551e50062da596959ffae8')
|
||||||
|
|
||||||
|
source_x86_64=(https://global.download.synology.com/download/Utility/SynologyDriveClient/3.0.2-12682/Ubuntu/Installer/x86_64/synology-drive-client-12682.x86_64.deb)
|
||||||
|
md5sums_x86_64=('d1ff4105630fa710b6175af04ea45119')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}"
|
||||||
|
tar -xJf data.tar.xz -C "${pkgdir}"
|
||||||
|
ls "${pkgdir}"
|
||||||
|
install -Dm 644 "${pkgdir}"/opt/Synology/SynologyDrive/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
|
@ -1,12 +1,13 @@
|
||||||
name = "synology-drive"
|
name = "synology-drive"
|
||||||
version = "2.0.4"
|
version = "3.0.2"
|
||||||
build_number = "11112"
|
build_number = "12682"
|
||||||
|
aur_build = "1"
|
||||||
description = "Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers."
|
description = "Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers."
|
||||||
license = "unknown"
|
license = "custom"
|
||||||
url = "https://www.synology.com"
|
url = "https://www.synology.com"
|
||||||
depends = ["glibc", "libsm", "binutils", "fontconfig"]
|
depends = ["glibc"]
|
||||||
optdepends = ["nautilus: For nautilus integration"]
|
optdepends = ["nautilus: For nautilus integration"]
|
||||||
conflicts = ["cloudstation-beta", "cloudstation-3.0", "cloudstation-drive"]
|
conflicts = []
|
||||||
arch = ["i686", "x86_64"]
|
arch = ["i686", "x86_64"]
|
||||||
|
|
||||||
[builder]
|
[builder]
|
||||||
|
@ -17,3 +18,6 @@ url = "https://global.download.synology.com/download/Utility/SynologyDriveClient
|
||||||
|
|
||||||
[sources.x86_64]
|
[sources.x86_64]
|
||||||
url = "https://global.download.synology.com/download/Utility/SynologyDriveClient/{version}-{build_number}/Ubuntu/Installer/x86_64/synology-drive-client-{build_number}.x86_64.deb"
|
url = "https://global.download.synology.com/download/Utility/SynologyDriveClient/{version}-{build_number}/Ubuntu/Installer/x86_64/synology-drive-client-{build_number}.x86_64.deb"
|
||||||
|
|
||||||
|
[test]
|
||||||
|
command = "synology-drive"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Maintainer: Felipe Martin <me@fmartingr.com>
|
# Maintainer: Felipe Martin <me@fmartingr.com>
|
||||||
|
|
||||||
pkgname="{{ name }}"
|
pkgname="{{ name }}"
|
||||||
pkgver="{{ version }}"
|
pkgver="{{ version }}_{{ build_number }}"
|
||||||
pkgrel="{{ build_number }}"
|
pkgrel="{{ aur_build }}"
|
||||||
pkgdesc="{{ description }}"
|
pkgdesc="{{ description }}"
|
||||||
arch=('{{ arch|join("' '") }}')
|
arch=('{{ arch|join("' '") }}')
|
||||||
url="{{ url }}"
|
url="{{ url }}"
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
{% extends "PKGBUILD.base.j2" %}
|
{% extends "PKGBUILD.base.j2" %}
|
||||||
|
|
||||||
{% block operations %}
|
{% block operations %}
|
||||||
prepare() {
|
|
||||||
cd "$srcdir"
|
|
||||||
mkdir -p data
|
|
||||||
ar x {{ name }}-*
|
|
||||||
xz -d data.tar.xz
|
|
||||||
tar xf data.tar --directory data
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cp -r "$srcdir/data/opt" "$pkgdir/opt"
|
cd "${srcdir}"
|
||||||
cp -r "$srcdir/data/usr" "$pkgdir/usr"
|
tar -xJf data.tar.xz -C "${pkgdir}"
|
||||||
|
ls "${pkgdir}"
|
||||||
|
install -Dm 644 "${pkgdir}"/opt/Synology/SynologyDrive/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
}
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue