summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD26
2 files changed, 24 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f61316a387b..0a359409cc7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,9 +7,15 @@ pkgbase = yasw
license = GPL3
makedepends = qt4
makedepends = doxygen
- depends = qt4
source = yasw-0.5.tgz::https://sourceforge.net/projects/yascanw/files/YASW%200.5/yasw_0.5.tgz/download
sha256sums = a5c6eb08e3ed14d96da89b16c79dcb2d19e2344696b09b3b2f2f3addc98ca65b
pkgname = yasw
+ pkgdesc = An application used to correct images taken with a camera
+ arch = x86_64
+ depends = qt4
+
+pkgname = yasw-docs
+ pkgdesc = Source code documentation for YASW (Yet Another Scan Wizard)
+ arch = any
diff --git a/PKGBUILD b/PKGBUILD
index ae56c047ce7..d13531489a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,18 @@
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
-pkgname=yasw
+pkgname=('yasw' 'yasw-docs')
pkgver=0.5
pkgrel=1
pkgdesc="An application used to correct images taken with a camera"
arch=('x86_64')
url="https://sourceforge.net/projects/yascanw"
license=('GPL3')
-depends=('qt4')
makedepends=('qt4' 'doxygen')
-source=("${pkgname}-${pkgver}.tgz::https://sourceforge.net/projects/yascanw/files/YASW%20${pkgver}/yasw_${pkgver}.tgz/download")
+source=("yasw-${pkgver}.tgz::https://sourceforge.net/projects/yascanw/files/YASW%20${pkgver}/yasw_${pkgver}.tgz/download")
sha256sums=('a5c6eb08e3ed14d96da89b16c79dcb2d19e2344696b09b3b2f2f3addc98ca65b')
build() {
- cd "${pkgname}_${pkgver}/src"
+ cd "yasw_${pkgver}/src"
rm -rf build
mkdir -p build
cd build
@@ -23,10 +22,19 @@ sha256sums=('a5c6eb08e3ed14d96da89b16c79dcb2d19e2344696b09b3b2f2f3addc98ca65b')
make
}
-package() {
- cd "${pkgname}_${pkgver}/src/build"
+package_yasw() {
+ pkgdesc="An application used to correct images taken with a camera"
+ arch=('x86_64')
+ depends=('qt4')
+ cd "yasw_${pkgver}/src/build"
install -Dm755 yasw "${pkgdir}/usr/bin/yasw"
- install -d "${pkgdir}/usr/share/doc/${pkgname}"
- cp -aR ../../documentation/doxygen/html/ "${pkgdir}/usr/share/doc/${pkgname}"
- install -m644 ../../changelog.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm644 ../../changelog.txt -t "${pkgdir}/usr/share/doc/yasw"
+}
+
+package_yasw-docs() {
+ pkgdesc="Source code documentation for YASW (Yet Another Scan Wizard)"
+ arch=('any')
+ cd "yasw_${pkgver}"
+ install -d "${pkgdir}/usr/share/doc/yasw-docs"
+ cp -aR documentation/doxygen/html/ "${pkgdir}/usr/share/doc/yasw-docs"
} \ No newline at end of file