summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Shammas2021-04-16 13:00:25 +0000
committerGeorge Shammas2021-04-16 13:00:25 +0000
commitc79c6d56e00e88ca2e068a23e00382c0ff5dcf2a (patch)
tree5d95f84a34772c5d221f4649fe4da3d8d4330c9f
parentcf94f707c67f868563b69f8f3f04fd37387153d6 (diff)
downloadaur-startech-usb-crash-cart-adapter.tar.gz
Cleanup unnessary steps
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD18
2 files changed, 3 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c075e1f0d022..46e2112ceb57 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
pkgbase = startech-usb-crash-cart-adapter
pkgdesc = StarTech usb crash cart adapter notecons software
pkgver = 20181017
- pkgrel = 1
+ pkgrel = 2
url = http://www.startech.com/Server-Management/KVM-Switches/USB-Crash-Cart-Adapter~NOTECONS02
arch = x86_64
license = unknown
- makedepends = rpmextract
source = notescon-20181017.zip::https://sgcdn.startech.com/005329/media/sets/notecons02_drivers/notecons02%20linux%20software%20pack.zip
sha256sums = 54cb0387e09b10300cb617e5ab54f0a20881ba672fe2e970c19be6924cf24608
diff --git a/PKGBUILD b/PKGBUILD
index a0252a864a3b..1c15dd12dba3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,35 +13,21 @@
# ---------------------------------------------------
pkgname=startech-usb-crash-cart-adapter
pkgver=20181017
-pkgrel=1
+pkgrel=2
pkgdesc='StarTech usb crash cart adapter notecons software'
arch=('x86_64')
url='http://www.startech.com/Server-Management/KVM-Switches/USB-Crash-Cart-Adapter~NOTECONS02'
license=('unknown')
-# makedepends -- this package requires rpmextract to create files necessary from the RPM included in download file
-makedepends=('rpmextract')
-
source=("notescon-${pkgver}.zip::https://sgcdn.startech.com/005329/media/sets/notecons02_drivers/notecons02%20linux%20software%20pack.zip")
sha256sums=('54cb0387e09b10300cb617e5ab54f0a20881ba672fe2e970c19be6924cf24608')
-prepare() {
- # rpmextract can't handle spaces so we move the file to something without spaces.
- mv "Linux RPM/Install-64bit.rpm" LinuxInstall64bit.rpm
-}
-
package() {
# Change directory into pkg where we'll do our business
cd $pkgdir
# Extract the files inside the rpm we moved into place during the prepare phase
- rpmextract.sh "${srcdir}/LinuxInstall64bit.rpm"
-
- # Copy /usr/lib/libz.so to opt/usb-crash-cart-adapter/${pkgver}/guts/libz.so.1.2.3.3
- install /usr/lib/libz.so opt/usb-crash-cart-adapter/${pkgver}/guts/libz.so.1.2.3.3
-
- # Copy /usr/lib/libz.so to opt/usb-crash-cart-adapter/${pkgver}/guts/libz.so.1
- install /usr/lib/libz.so opt/usb-crash-cart-adapter/${pkgver}/guts/libz.so.1
+ bsdtar -xf "${srcdir}/Linux RPM/Install-64bit.rpm"
# Install files that match the following pattern into usr/lib/udev/rules.d
install -D -t usr/lib/udev/rules.d opt/usb-crash-cart-adapter/${pkgver}/12-dcc*-install.rules