blob: 088875db27d3920c3616226b1efbfc55d57a9935 (
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
|
# Maintainer: William Tang <galaxyking0419@gmail.com>
# Co-Maintainer: Robert Zhou <meep (dot) aur (at) meepzh (dot) com>
pkgname=adsklicensing
pkgver=13.2.0.9150
pkgrel=1
pkgdesc='Autodesk License Checking Software'
arch=('x86_64')
url="https://www.autodesk.com/"
license=('custom')
depends=('adlmapps>=28')
DLAGENTS+=('manual::/usr/bin/echo \ \ Note: Please download the package manually from the official website')
source=("manual://adsklicensing${pkgver}-0-0.x86_64.rpm")
sha256sums=('1bbff1f73314fd4e9de3a3d1982634a1acd3dcdd156e6d6b7ce8b6e22b932da6')
options=(!strip)
install='adsklicensing.install'
prepare() {
# Link service program in /usr/bin/
mkdir -p usr/bin
ln -s /opt/Autodesk/AdskLicensing/${pkgver}/AdskLicensingService/AdskLicensingService usr/bin/AdskLicensingService
# Remove init service file
rm opt/Autodesk/AdskLicensing/${pkgver}/AdskLicensingService/adsklicensing.el6.conf
# Move systemd service file
chmod 644 opt/Autodesk/AdskLicensing/${pkgver}/AdskLicensingService/adsklicensing.el7.service
mkdir -p usr/lib/systemd/system
mv opt/Autodesk/AdskLicensing/${pkgver}/AdskLicensingService/adsklicensing.el7.service \
usr/lib/systemd/system/adsklicensing.service
# Move font files
mkdir -p usr/local/share/fonts
mv opt/Autodesk/AdskLicensing/${pkgver}/AdskLicensingService/res/fonts usr/local/share/fonts/ArtifaktElement
}
package() {
mv opt usr $pkgdir/
}
|