summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e90372b5be1..91f6d6c3936 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,25 @@
# Maintainer: Simon Wilper <sxw@chronowerks.de>
pkgname=unit-convert
pkgver=2.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="Qt Unit Conversion Tool"
-url="https://www.chronowerks.de/cgit/unit-convert/"
+url="https://www.chronowerks.de/pub/"
arch=('x86_64' 'i686')
license=('LGPL2')
depends=('qt5-base' 'qt5-script')
-source=("https://www.chronowerks.de/cgit/unit-convert/snapshot/unit-convert-${pkgver}.tar.bz2")
-sha512sums=('8713705f3801e44a2280020d0c2255958b84db869dc05cf3c5c5b3e49b1e0b460c50ba7ae72143db311726ace0d9cb2739d7a95c4a1b595e2d27b5038b82cb35')
+source=("https://www.chronowerks.de/pub/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('7cb1663adaa8137f6521b866d781e3e3a8123c29f4f0fd4a378ae1ddd4d2aaecddad6448736aea2747d36e004e4943c5b0dda52b04661a2200dfb32f237a03c4')
build() {
cd "${pkgname}-${pkgver}"
- qmake
+ qmake convert.pro
make
+ rcc --verbose --compress 9 --binary -o data.rcc res/main.qrc
}
package() {
- local t=opt/${pkgname}
- install -d -m755 ${pkgdir}/$t/
- install -m755 ${srcdir}/${pkgname}-${pkgver}/bin/convert ${pkgdir}/$t/
- install -m644 ${srcdir}/${pkgname}-${pkgver}/bin/data.rcc ${pkgdir}/$t/
+ install -d -m755 ${pkgdir}/usr/share/convert/
+ install -d -m755 ${pkgdir}/usr/bin/
+ install -m755 ${srcdir}/${pkgname}-${pkgver}/bin/convert ${pkgdir}/usr/bin/unit-convert
+ install -m644 ${srcdir}/${pkgname}-${pkgver}/data.rcc ${pkgdir}/usr/share/convert/
}