summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66d8ac63102903dedebb1e307fa531d897b6f6e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Jose Riha <jose1711 gmail com>
# Contributor: jhrdka
# Contributor: James An <james@jamesan.ca>
# Contributor: ugaciaka <ugaciaka@gmail.com>

_realname=SimpleLabeler
_pkgpath=opt/lightscribeApplications
_pkgname=lightscribe-labeler

pkgname=bin32-lightscribe-labeler
pkgver=1.18.15.1
pkgrel=5
pkgdesc="LightScribe Simple Labeler"
arch=('x86_64')
url="http://www.pawtec.com/lightscribe"
license=('custom')
depends=('bin32-lightscribe' 'lib32-libstdc++5' 'lib32-qt4' 'lib32-libxi' 'lib32-libxcursor' 'lib32-libpng12' 'lib32-fontconfig' 'lib32-libsm' 'lib32-libxrandr')
provides=("$_pkgname=$pkgver")
conflicts=($_pkgname)
options=('!strip')
#source=(http://download.lightscribe.com/ls/lightscribeApplications-$pkgver-linux-2.6-intel.rpm lightscribe-labeler.desktop)
source=(http://www.pawtec.com/lightscribe_files/Linux/LSL/lightscribeApplications-$pkgver-linux-2.6-intel.rpm lightscribe-labeler.desktop libstdc++.so.5::https://dl.dropboxusercontent.com/u/29095940/oss/libstdc%2B%2B.so.5 SimpleLabeler)
md5sums=('bf5eb9aa41e3b5f4d0c879591464c1db'
         '02f2e57ec1773d906f8b15e6f1f95eae'
         'ca9f92eb5fcb3598fabc2cc6c7125054'
         'a130417033d647e2803f5ff9909cbba9')

build() {
  cd $srcdir/$_pkgpath
  chmod -x $_realname/qt.conf
}

package() {
    cd $srcdir

    msg2 "  -> Installing program..."
    install -d $pkgdir/$_pkgpath/$_realname
    cp -r $_pkgpath/SimpleLabeler $pkgdir/$_pkgpath/

    msg2 "  -> Installing icon..."
    install -Dm644 $_pkgpath/$_realname/content/images/LabelWizardIcon.png ${pkgdir}/usr/share/pixmaps/$_pkgname.png

    msg2 "  -> Installing shortcut and symlink..."
    install -Dm644 $_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname
    install -d $pkgdir/usr/bin
    ln -s /$_pkgpath/$_realname/$_realname $pkgdir/usr/bin/$_pkgname
    
    msg2 "  -> Installing license           ..."
    install -Dm644 $_pkgpath/lightscribeLicense.rtf $pkgdir/usr/share/licenses/$_pkgname/license.rtf
    install -Dm644 $srcdir/libstdc++.so.5 $pkgdir/opt/lightscribeApplications/SimpleLabeler/libstdc++.so.5
    install -Dm755 $srcdir/SimpleLabeler $pkgdir/usr/bin/lightscribe-labeler
}