summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7007e07e6774991b258915500345f21e96559f4 (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
# 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=4
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)
md5sums=('bf5eb9aa41e3b5f4d0c879591464c1db'
         '02f2e57ec1773d906f8b15e6f1f95eae')

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
}