Commit | Line | Data |
---|---|---|
209feeb0 H |
1 | # Contributor: Thomas Mudrunka <harvie@@email..cz> |
2 | # Maintainer: Thomas Mudrunka <harvie@@email..cz> | |
3 | # You can also contact me on http://blog.harvie.cz/ | |
4 | ||
5 | pkgname=imageenlarger | |
6 | pkgver=0.9.0 | |
7 | pkgrel=1 | |
8 | pkgdesc="Small graphical tool (based on Qt) to resize, especially magnify bitmaps in high quality. (also called SmillaEnlarger)" | |
d0136a55 | 9 | arch=('i686' 'x86_64') |
209feeb0 H |
10 | license=('GPL') |
11 | url="http://sourceforge.net/projects/imageenlarger/" | |
12 | depends=('qt') | |
13 | source=("http://downloads.sourceforge.net/project/imageenlarger/imageenlarger/SmillaEnlarger%20Release%20${pkgver}/SmillaEnlarger_${pkgver}_source.zip") | |
14 | md5sums=('a2ce1db14eb2c8addd97986e65da0689') | |
15 | ||
16 | build() { | |
17 | cd "${srcdir}/SmillaEnlarger_${pkgver}_source/SmillaEnlargerSrc/" || return 1 | |
18 | qmake ImageEnlarger.pro || return 1 | |
19 | make || return 1 | |
20 | ||
21 | mkdir -p ${pkgdir}/usr/bin/ | |
22 | cp SmillaEnlarger ${pkgdir}/usr/bin/ | |
23 | ||
24 | chmod -R 755 ${pkgdir} | |
25 | ||
26 | #Desktop Launcher | |
27 | mkdir -p ${pkgdir}/usr/share/applications | |
28 | echo '[Desktop Entry] | |
29 | Encoding=UTF-8 | |
30 | Name=SmillaEnlarger | |
31 | GenericName=ImageEnlarger | |
32 | Comment=Resize images using hi-tech alghoritms | |
33 | Exec=/usr/bin/SmillaEnlarger | |
34 | Icon=smilla | |
35 | StartupNotify=true | |
36 | Terminal=false | |
37 | Type=Application | |
38 | Categories=Application;Graphics;' > ${pkgdir}/usr/share/applications/SmillaEnlarger.desktop | |
39 | ||
40 | #Icon | |
41 | mkdir -p ${pkgdir}/usr/share/pixmaps | |
42 | cp smilla.ico ${pkgdir}/usr/share/pixmaps/ | |
43 | cp smilla.png ${pkgdir}/usr/share/pixmaps/ | |
44 | ||
45 | } |