From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- base/usb/usb.build | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100755 base/usb/usb.build (limited to 'base/usb/usb.build') diff --git a/base/usb/usb.build b/base/usb/usb.build new file mode 100755 index 0000000..0fb853c --- /dev/null +++ b/base/usb/usb.build @@ -0,0 +1,135 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=usb +MAJOR=1.0 +VERSION=${MAJOR}.15 +BUILD=2 + +# Description + +cat > ${PKG}/install/slack-desc < ${PKG}${SYS_DIR[sbin]}/update-usbids +chmod 0755 ${PKG}${SYS_DIR[sbin]}/update-usbids +rm -rf \ + ${PKG}${SYS_DIR[bin]}/lsusb.py +} + +SRCNAME[3]=usbids +SRCVERS[3]=$(date "+%Y%m%d") +SRCPACK[3]=http://linux-usb.sourceforge.net/usb.ids +SRCOPTS[3]="nosrcroot nounpack" + +build3() +{ +install.dir ${PKG}${SYS_DIR[share]}/hwdata +rm -f ${PKG}${SYS_DIR[share]}/hwdata/usb.ids +install.dat ${CWD}/usb.ids ${PKG}${SYS_DIR[share]}/hwdata +} -- cgit v1.2.3-70-g09d2