summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d188d294e2bce01343685385105b2179292cc83 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Jakub SzymaƄski <jakubmateusz@poczta.onet.pl>
pkgname=woeusb-ng
pkgver=0.2.5
pkgrel=3
pkgdesc="Simple tool that enable you to create your own usb stick with Windows installer."
arch=('any')
url="github.com/WoeUSB/WoeUSB-ng"
license=('GPL3')
depends=(
    'parted'
    'dosfstools'
    'ntfs-3g'
    'grub'
    'p7zip'
    'python'
    'python-pip'
    'python-wxpython'
    'xdg-utils'
    )
makedepends=(
    'git'
    'python-setuptools'
)
optdepends=('python-termcolor: Colored text')
provides=('woeusb')
conflicts=(
    'woeusb'
    'woeusb-git'
)
source=(
    "git+https://github.com/WoeUSB/WoeUSB-ng.git"
)
sha256sums=(
    'SKIP'
)


build() {
    cd WoeUSB-ng

    git checkout v$pkgver
    git apply ../../AUR.patch || echo "Failed to apply patch"

    python setup.py build
}

package() {
    cd WoeUSB-ng

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

    mkdir -p $pkgdir/usr/bin
    mkdir -p $pkgdir/usr/share/icons/WoeUSB-ng
    mkdir -p $pkgdir/usr/share/applications
    mkdir -p $pkgdir/usr/share/polkit-1/actions

    # scripts
    cp WoeUSB/woeusb WoeUSB/woeusbgui $pkgdir/usr/bin

    # icon
    cp WoeUSB/data/icon.ico $pkgdir/usr/share/icons/WoeUSB-ng/icon.ico

    # shortcut
    cp miscellaneous/WoeUSB-ng.desktop $pkgdir/usr/share/applications/WoeUSB-ng.desktop
    chmod 755 $pkgdir/usr/share/applications/WoeUSB-ng.desktop

    # policy
    cp miscellaneous/com.github.woeusb.woeusb-ng.policy $pkgdir/usr/share/polkit-1/actions/com.github.woeusb.woeusb-ng.policy
}