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

pkgname=mintstick-git
pkgver=r287.4e9b0ab
pkgrel=1
pkgdesc='Format or write images to USB sticks (Linux Mint tool)'
arch=(any)
url=https://github.com/linuxmint/mintstick
license=(GPL)
depends=(dosfstools python-dbus python-gobject python-pyparted python-unidecode python-xapp udisks2 xapps)
optdepends=('dosfstools: FAT filesystems' 'e2fsprogs: Ext filesystems' 'ntfs-3g: NTFS filesystems')
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

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

prepare() {
  sed -i -e '/.*kde4.*/d' \
         -e 's| /usr| usr|' \
         -e 's| usr| "'"$pkgdir"'"/usr|' \
         -e 's|^|cp -r |' \
         $pkgname/debian/install
}

package() {
  install -Dm644 $pkgname/debian/mintstick.1 -t "$pkgdir/usr/share/man/man1"

  install -dm755 "$pkgdir/usr/bin"
  install -dm755 "$pkgdir/usr/lib/mintstick"
  install -dm755 "$pkgdir/usr/share/"{applications,icons,mintstick,nemo/actions,polkit-1/actions}

  cd $pkgname
  sh ./debian/install
}