summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTércio Martins2020-11-20 02:34:25 -0300
committerTércio Martins2020-11-20 02:34:25 -0300
commitd29f859cd79bd124edd44d206b540d3c518d76e8 (patch)
tree3f31222094ee9cd50338afcd08204b6e719a1f36
downloadaur-d29f859cd79bd124edd44d206b540d3c518d76e8.tar.gz
Initial package upload
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD37
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0d41fc743f3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = epsonscan2
+ pkgdesc = Epson scanner management utility
+ pkgver = 6.6.2.1
+ pkgrel = 1
+ url = http://support.epson.net/linux/en/epsonscan2.php
+ arch = i686
+ arch = pentium4
+ arch = x86_64
+ license = GPL3
+ makedepends = boost
+ makedepends = cmake
+ depends = boost-libs
+ depends = libharu
+ depends = qt5-singlecoreapplication
+ depends = rapidjson
+ depends = sane
+ source = http://support.epson.net/linux/src/scanner/epsonscan2/epsonscan2-6.6.2.1-1.src.tar.gz
+ sha512sums = 6bb2ec6d776000cc87ccfcfab1df2392c4bd8c0538888ea9e051938cddc356560b657d5c8a8473a93be4b219683995c8eae69c49aef6bef4473c96ddda32cbf6
+
+pkgname = epsonscan2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0c20a5548ed
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
+
+pkgname=epsonscan2
+pkgver=6.6.2.1
+_pkgver="${pkgver}-1"
+pkgrel=1
+arch=('i686' 'pentium4' 'x86_64')
+pkgdesc="Epson scanner management utility"
+url="http://support.epson.net/linux/en/epsonscan2.php"
+license=('GPL3')
+depends=('boost-libs' 'libharu' 'qt5-singlecoreapplication' 'rapidjson' 'sane')
+makedepends=('boost' 'cmake')
+source=("http://support.epson.net/linux/src/scanner/${pkgname}/${pkgname}-${_pkgver}.src.tar.gz")
+sha512sums=('6bb2ec6d776000cc87ccfcfab1df2392c4bd8c0538888ea9e051938cddc356560b657d5c8a8473a93be4b219683995c8eae69c49aef6bef4473c96ddda32cbf6')
+
+prepare() {
+ mkdir -p build
+
+ sed -i 's|/lib/udev|${CMAKE_INSTALL_PREFIX}/lib/udev|' \
+ "${srcdir}/${pkgname}-${_pkgver}/CMakeLists.txt"
+}
+
+build() {
+ cd build
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ ../${pkgname}-${_pkgver}
+ cmake --build .
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "${srcdir}/${pkgname}-${_pkgver}/desktop/rpm/i686/${pkgname}.desktop" \
+ "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}