blob: 59bb5b4248bbcf35408e7eaaa4817a6881795ec5 (
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
58
59
60
61
62
|
pkgname=bricscad-fr_fr
pkgver=25.1.05
pkgrel=1
pkgdesc="Logiciel de CAO DWG"
arch=("x86_64")
url="https://www.bricsys.com"
license=('Custom:bricscad')
depends=(lib32-glibc cairo lib32-fontconfig libcups lib32-freetype2 lib32-gtk2)
makedepends=(python-requests python-beautifulsoup4 python-progressbar python-typing_extensions)
provides=('bricscad')
_lang=fr_FR
_os=2
_version=9043
# To download you must be logged in. The official website has no permanent link.
DLAGENTS=("https::/usr/bin/python $PWD/dlagent.py %u %o $_os $_version")
source=(
dlagent.py
"BricsCAD-V${pkgver}-1-${_lang}.${arch}.rpm::${url}"
)
package() {
cp -dr --no-preserve=ownership ./usr "${pkgdir}"/
cp -dr --no-preserve=ownership ./opt "${pkgdir}"/
cp -dr --no-preserve=ownership ./var "${pkgdir}"/
# Allow creation of licence file for anyone
chmod -R 757 "${pkgdir}"/var/bricsys
}
post_install() {
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
if [ "$1" = "configure" ] && [ -x "`which update-desktop-database 2>/dev/null`" ]; then
update-desktop-database /usr/share/applications/
fi
if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then
update-mime-database /usr/share/mime
fi
if [ "$1" = "configure" ] && [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && [ -x /usr/share/icons/gnome/index.theme ]; then
gtk-update-icon-cache --force /usr/share/icons/gnome
fi
if [ "$1" = "configure" ] && [ -x "`which locale-gen 2>/dev/null`" ]; then
locale-gen ${_lang}
fi
}
post_remove() {
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
if [ -x "`which update-desktop-database 2>/dev/null`" ]; then update-desktop-database /usr/share/applications/ ; fi
if [ -x "`which update-mime-database 2>/dev/null`" ]; then update-mime-database /usr/share/mime ; fi
if [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && [ -x /usr/share/icons/gnome/index.theme ]; then gtk-update-icon-cache --force /usr/share/icons/gnome ; fi
}
md5sums=('1ed88931cf84e97516a2b1166cc52651'
'd0f71f95b9fdd99828f9cfcaf7d1a077')
|