[arch-commits] Commit in (4 files)

Andreas Radke andyrtr at archlinux.org
Sun Jul 12 09:42:29 UTC 2020


    Date: Sunday, July 12, 2020 @ 09:42:28
  Author: andyrtr
Revision: 391741

add package based on the one from AUR

Added:
  sane-airscan/
  sane-airscan/repos/
  sane-airscan/trunk/
  sane-airscan/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Added: sane-airscan/trunk/PKGBUILD
===================================================================
--- sane-airscan/trunk/PKGBUILD	                        (rev 0)
+++ sane-airscan/trunk/PKGBUILD	2020-07-12 09:42:28 UTC (rev 391741)
@@ -0,0 +1,38 @@
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Thomas Kiss <thokis at gmail.com>
+
+pkgname=sane-airscan
+pkgver=0.99.9
+pkgrel=1
+pkgdesc="SANE - SANE backend for AirScan (eSCL) and WSD document scanners"
+url="https://github.com/alexpevzner/sane-airscan"
+arch=('x86_64')
+license=('GPL2')
+depends=('sane' 'libsoup')
+#makedepends=('meson')
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/alexpevzner/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('2773a18007eb7b191fe02b30a82a20cf196f567fb32d4601a007f48ee6f34e21')
+
+build() {
+    #arch-meson $pkgname-$pkgver build
+    #ninja -C build
+
+    cd ${pkgname}-${pkgver}
+    make
+}
+
+#check() {
+#    meson test -C build
+#}
+
+package() {
+    #DESTDIR="${pkgdir}" ninja -C build install
+    #install -Dm644 ${pkgname}-${pkgver}/README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
+
+    cd ${pkgname}-${pkgver}
+    make DESTDIR="${pkgdir}" install
+    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
+    # add missing .so symlink
+    cd "${pkgdir}"/usr/lib/sane
+    ln -vsf libsane-airscan.so.1 libsane-airscan.so
+}



More information about the arch-commits mailing list