summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD40
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0f301d9db7a3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Wed Feb 28 10:58:44 UTC 2018
+pkgbase = haskell-iwlib-git
+ pkgdesc = A thin wrapper over the iw C library, providing access to wireless card information in supported systems.
+ pkgver = 0.1.0+5+gf8a41bd
+ pkgrel = 1
+ url = https://hackage.haskell.org/package/iwlib
+ arch = i686
+ arch = x86_64
+ license = custom:BSD3
+ makedepends = git
+ makedepends = ghc
+ depends = wireless_tools
+ depends = ghc-libs
+ source = haskell-iwlib-git::git+https://github.com/jaor/iwlib.git
+ sha512sums = SKIP
+
+pkgname = haskell-iwlib-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a5fde0e2a7cf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+_hkgname=iwlib
+pkgname=haskell-iwlib-git
+pkgver=0.1.0+5+gf8a41bd
+pkgrel=1
+pkgdesc='A thin wrapper over the iw C library, providing access to wireless card information in supported systems.'
+url='https://hackage.haskell.org/package/iwlib'
+arch=('i686' 'x86_64')
+license=('custom:BSD3')
+depends=('wireless_tools' 'ghc-libs')
+makedepends=('git' 'ghc')
+source=("${pkgname}::git+https://github.com/jaor/${_hkgname}.git")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ git describe --tags --always|sed 's|-|+|g'|sed -r 's|v(.+)|\1|'
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-developer -f-integer-simple
+ runhaskell Setup build
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+cd "${srcdir}/${pkgname}"
+
+ install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+ install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}