blob: 6a499b75034f298b99a66a8abaf7354228d857f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Wagner Skellington <kelson dot glint at gmail dot com>
# Contributor: Seth Murphy <seth.murphy18@gmail.com>
pkgname='expandrive-bin'
pkgver='2023.4.1'
pkgrel='1'
pkgdesc='A utility for managing multiple cloud storage services'
arch=('x86_64')
url='https://www.expandrive.com/'
license=('custom:proprietary')
depends=(
'fuse2'
'gtk3'
'nss'
'libxss'
'gnome-keyring'
)
source=('LICENSE'
"https://packages.expandrive.com/expandrive/pool/stable/e/ex/ExpanDrive_${pkgver}_amd64.deb")
sha256sums=('dd77a86c9319a5e12b066688a0c804f942fd358b096ad1981eba04426dd16781'
'f5578961a8697bc8caf0dd3160200a21728db52932929079f71755b39619c8ef')
prepare() {
# Create the package directory, if it doesn't already exist
if [ ! -d "$srcdir/data" ]; then
mkdir "$srcdir/data"
else
# If the directory exists, wipe its contents
rm -rf "$srcdir/data"
mkdir "$srcdir/data"
fi
tar -xf "$srcdir/data.tar.xz" -C "$srcdir/data"
# Remove unnecessary files from the package
rm -rf "$srcdir/data/opt/ExpanDrive/resources/app.asar.unpacked"
}
package() {
# Copy the source files to the package directory
cp -R "$srcdir/data/opt/" "$pkgdir/opt/"
cp -R "$srcdir/data/usr/" "$pkgdir/usr/"
# Install the LICENSE file in the correct place
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
post_install() {
# Link the ExpanDrive binary to /usr/local/bin
ln -sf '/opt/ExpanDrive/expandrive' '/usr/local/bin/expandrive'
}
pre_remove() {
# Remove ExpanDrive from /usr/local/bin
rm -f '/usr/local/bin/expandrive'
}
|