summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6eaa7097ec115e61d49794f184c0d447bff7e024 (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
# Maintainer: Giovanni Harting <539@idlegandalf.com>
# Contributor: aimileus <me at aimileus dot nl>
# Contributor: Salvador PardiƱas <darkfm@vera.com.uy>

pkgname=woeusb
pkgver=3.3.1
pkgrel=1
pkgdesc="A Linux program to create Windows USB stick installer from a Windows DVD or an image"
arch=('x86_64')
url="https://github.com/slacka/WoeUSB"
license=('GPL3')
depends=('wxgtk2' 'grub' 'dosfstools' 'parted' 'wget' 'ntfs-3g')
makedepends=('git')
optdepends=('gksu')
conflicts=('woeusb-git')
source=("WoeUSB-${pkgver}::git+https://github.com/slacka/WoeUSB.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
    cd "WoeUSB-$pkgver"

    grep 'filter=version' .gitattributes | cut -d' ' -f1 | while read file; do
        sed -i "s/@@WOEUSB_VERSION@@/${pkgver}/" $file
    done

    autoreconf --install
    ./configure --prefix=/usr
}

build() {
    cd "WoeUSB-$pkgver"
    make
}

package() {
    cd "WoeUSB-$pkgver"
    make DESTDIR="$pkgdir/" install
}