summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6df4240e964bb8eeb45e4bf352a2d43f2e8a8798 (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: unclesam <web _AT_ shinobi-mail _DOT_ de>

_pkgname=mintstick
pkgname=$_pkgname-git
pkgver=r198.09aa95f
pkgrel=1
pkgdesc="Format or write images to usb-sticks (Linux Mint tool)"
arch=('any')
url="https://github.com/linuxmint/mintstick"
license=('GPL')
depends=('desktop-file-utils' 'dosfstools' 'python-dbus' 'python-gobject' 'python-pyparted' 'python-xapp' 'udisks2' 'xapps')
optdepends=('dosfstools: FAT filesystems' 'e2fsprogs: Ext filesystems' 'ntfs-3g: NTFS filesystems')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=($pkgname::git+https://github.com/linuxmint/mintstick.git)
md5sums=(SKIP)

pkgver() {
  cd $pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $pkgname
  sed -i 's| /usr| "'$pkgdir'"/usr|g' install.sh
  sed -i 's|DATAFILES="mintstick.glade mintstick.ui"|DATAFILES="mintstick.ui"|' install.sh
}

package() {
  cd $pkgname

  install -d "$pkgdir/usr/share"
  cp -a share/nemo "$pkgdir/usr/share"

  install -d "$pkgdir/usr/bin"
  install -d "$pkgdir/usr/share/applications"
  install -d "$pkgdir/usr/share/kde4/apps/solid/actions"
  install -d "$pkgdir/usr/share/polkit/org.linuxmint.im.policy"
  ./install.sh
}