summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMantas Mikulėnas2019-09-13 08:12:17 +0300
committerMantas Mikulėnas2019-09-13 08:12:17 +0300
commit6db6a931608344a3789414322afdc93dc03cb377 (patch)
treed342585d0063124402dc0b52f2ed135eafe6fe0a /PKGBUILD
parent05da5b69d5a6d7a6e485c482031b8972bd64d37f (diff)
downloadaur-autodesk-nlm.tar.gz
split package in case people want to use multiple vendor daemons
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 20 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e277c013f6f..f8ba9946b9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,13 @@
# Maintainer: Mantas Mikulėnas <grawity@gmail.com>
-pkgname=autodesk-nlm
+pkgbase=autodesk-nlm
+pkgname=(autodesk-nlm autodesk-lmgrd)
pkgver=11.16.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="FLEXnet License Manager (lmgrd) + Autodesk® vendor daemon (adskflex)"
arch=(x86_64)
url="https://knowledge.autodesk.com/customer-service/network-license-administration"
license=(custom:'¯\_(ツ)_/¯')
depends=('gcc-libs' 'ld-lsb')
-provides=("flexnet=$pkgver") # well, not for ARM...
-conflicts=('flexnet')
source=("https://knowledge.autodesk.com/sites/default/files/file_downloads/nlm11.16.2.0_ipv4_ipv6_linux64.tar.gz"
"lmgrd.service")
md5sums=('b97dafa3a2b748e54951d8ac0f06bd44'
@@ -20,9 +19,25 @@ prepare() {
bsdtar xvf "nlm${pkgver}_ipv4_ipv6_linux64.rpm"
}
-package() {
+package_autodesk-nlm() {
+ pkgdesc="Autodesk® vendor daemon (adskflex) for FLEXnet License Manager"
+ optdepends=("autodesk-lmgrd: FLEXnet License Manager core (lmgrd) distributed by Autodesk"
+ "flexnet: FLEXnet License Manager core (lmgrd) distributed by Arm"
+ "lmgrd: FLEXnet License Manager core (lmgrd) distributed by MATLAB")
+
+ mkdir -p "$pkgdir"/usr/lib/flexnetserver
+ cp -a opt/flexnetserver/adskflex "$pkgdir"/usr/lib/flexnetserver/adskflex
+}
+
+package_autodesk-lmgrd() {
+ pkgdesc="FLEXnet License Manager (lmgrd) distributed by Autodesk"
+ provides=("flexnet=$pkgver" "lmgrd=$pkgver") # well, not for ARM...
+ conflicts=("flexnet" "lmgrd")
+ optdepends=("autodesk-nlm: Autodesk licensing vendor daemon (adskflex)")
+
mkdir -p "$pkgdir"/usr/lib
cp -a opt/flexnetserver "$pkgdir"/usr/lib/flexnetserver
+ rm -f "$pkgdir"/usr/lib/flexnetserver/adskflex
mkdir -p "$pkgdir"/usr/bin
ln -s ../lib/flexnetserver/lmutil "$pkgdir"/usr/bin/lmutil