summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4d3e32c1f1536944fc8fca5c8ee16893438c364 (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: gmes78 <gmes.078 at gmail dot com>
pkgname=usbmaker
pkgver=1.0.1
pkgrel=1
pkgdesc="Utility to format and make bootable usb drives"
arch=(any)
url="https://github.com/gmes/USBMaker"
license=('GPL')
depends=('python-pyqt5')
makedepends=('python-setuptools')
optdepends=('parted: partitioning support'
            'cdrtools: ISO label detection'
            'e2fsprogs: Ext4 and badblocks support'
            'dosfstools: FAT support'
            'exfat-utils: exFAT support'
            'ntfs-3g: NTFS support'
            'udftools: UDF support'
            'btrfs-progs: Btrfs support'
            'grub: GRUB2 support'
            'syslinux: SYSLINUX support'
            'systemd: systemd-boot support'
            'grub4dos: GRUB4DOS support')
conflicts=('usbmaker-git')
source=("https://github.com/gmes/USBMaker/archive/$pkgver.tar.gz"
        'usbmaker.desktop'
        'usbmaker.svg'
        'usbmaker_polkit'
        'usbmaker.pkexec.policy')
sha512sums=('a180e6e0e0dfd2de69d35e0f4e5e3d4cd6d03534bcf1f0eae16142aac1c4a8ba0e4f631d849b1d928fe4ead7ac7522f03111b299ce823f8b1a493823d6f945df'
            '0390d0b242952a96b61e576d9ec8dbfa2db5f53443e46d0d646d3be4f9da9245446b423595dbdd290c9787bbd50f728ad5abe47199d975029e68ca30ced91c9a'
            '31c1959750310f2b657c46e0c6b660c720c5fc135bf096845935756126db426d0cd0232b14a58cab057ebee5bf1e707e3680f61d9d398cdde14550b5de498c6b'
            '4c3b6f727ebbc728e0127d487077b7e03497ebcf3781bf52ca982114989d7a05347ffd8a479eeb05851b0cd5ec879f0ce0e9792d79c9d1621382595a87de7ab1'
            '9847ca9775c85b60b023d4fb03ecb4a80286b160d9fdbca0535d58568b06784d5e2c6e7bc649a97c9fafa740f5b6023aa50f6e2f1ca80649c998fbf2792fbd84')

package() {
  cd "$srcdir/USBMaker-$pkgver"

  python setup.py install --root="$pkgdir/" --optimize=1

  mkdir -p "$pkgdir/usr/share/applications"
  install --mode=644 --owner=root --group=root "$srcdir/usbmaker.desktop" "$pkgdir/usr/share/applications/"

  mkdir -p "$pkgdir/usr/share/icons"
  install --mode=644 --owner=root --group=root "$srcdir/usbmaker.svg" "$pkgdir/usr/share/icons/"

  mkdir -p "$pkgdir/usr/bin"
  install --mode=755 --owner=root --group=root "$srcdir/usbmaker_polkit" "$pkgdir/usr/bin/"

  mkdir -p "$pkgdir/usr/share/polkit-1/actions"
  install --mode=644 --owner=root --group=root "$srcdir/usbmaker.pkexec.policy" "$pkgdir/usr/share/polkit-1/actions/"
}