summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSergej Pupykin2019-07-31 15:31:43 +0300
committerSergej Pupykin2019-07-31 15:31:43 +0300
commite0d3fcd00fa5e2baf125beb21b88d08120b0ecdd (patch)
tree8aa2ef61e6802b4c014cf9cc18d7dbe9718c1339 /PKGBUILD
downloadaur-fl2000-dkms.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..07a4d256024
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+pkgname=fl2000-dkms
+pkgver=r16.92da04a
+pkgver() {
+ cd "$srcdir/FL2000"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+pkgrel=1
+pkgdesc="Fresco Logic FL2000 USB to VGA adapter driver"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('dkms')
+makedepends=('git')
+optdepends=('linux-headers: build the module against Arch kernel'
+ 'linux-ck-headers: build the module against Linux-ck kernel'
+ 'linux-lts-headers: build the module against LTS Arch kernel')
+url='https://github.com/FrescoLogic/FL2000'
+source=("git+https://github.com/FrescoLogic/FL2000.git"
+ 'dkms.conf.in')
+md5sums=('SKIP'
+ 'b62bd690d716ddce06091899ce5259fa')
+
+package() {
+ cd ${srcdir}/FL2000
+ install -dm755 "${pkgdir}/usr/src/fl2000-${pkgver}/"
+ cp -a "${srcdir}"/FL2000/src/* "${pkgdir}"/usr/src/fl2000-${pkgver}/
+ sed "s/#MODULE_VERSION#/${pkgver}/" "${srcdir}/dkms.conf.in" > "${pkgdir}/usr/src/fl2000-${pkgver}/dkms.conf"
+}