summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-07-13 14:05:01 +0300
committerDimitris Kiziridis2020-07-13 14:05:01 +0300
commit9d0a38e06053a4797e414e610880546b028d98b4 (patch)
tree4a8b90e9a8d1a25f5498b4a2053b0eda0f8ab474 /PKGBUILD
parent277d80abac46937395890393acad53e08e2d4f21 (diff)
downloadaur-yasw.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 17 insertions, 9 deletions
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