diff options
author | Mohammadreza Abdollahzadeh | 2021-02-06 10:33:19 +0330 |
---|---|---|
committer | Mohammadreza Abdollahzadeh | 2021-02-06 10:33:19 +0330 |
commit | ebe436c4487157c7dbc27779cc7cfe40998662eb (patch) | |
tree | 4d0d8df83be517597fa7a808380ec7220ae91594 /PKGBUILD | |
parent | 8483022d1eb17b63a2b110fa4fb71b53f0ca9c5e (diff) | |
download | aur-ebe436c4487157c7dbc27779cc7cfe40998662eb.tar.gz |
fix checksum and PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 16 insertions, 19 deletions
@@ -1,32 +1,29 @@ -# Maintainer: Frederic Bezies <fredbezies at gmail dot com> +# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail.com> +# Contributor: Frederic Bezies <fredbezies at gmail dot com> # Contributor: K900 <me@0upti.me> -_pkgname=windows2usb -pkgname=${_pkgname}-git -pkgver=0.1.6.r1.gf0679bf -pkgrel=1 +pkgname=windows2usb-git +pkgver=0.1.6.r3.g35565d0 +pkgrel=1 pkgdesc="Windows 7/8/8.1/10 ISO to Flash Drive burning utility for Linux (MBR/GPT, BIOS/UEFI, FAT32/NTFS) - git version" arch=("any") url="https://github.com/ValdikSS/windows2usb" license=("Apache") - depends=("bash" "awk" "ntfs-3g" "dosfstools" "util-linux" "p7zip" "ms-sys") - -source=( - "git+https://github.com/ValdikSS/windows2usb.git" - "https://github.com/pbatard/rufus/raw/master/res/uefi/uefi-ntfs.img" -) -sha512sums=( - "SKIP" - "139be9b1db2fa227590a26b15a380e1fa5855436521db7365953d80d8ec3935fb427248c5de8ed5f90846f4b3946d7bdb6cdab326a2016d8d51721e612b70c9b" -) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git+https://github.com/ValdikSS/windows2usb.git" + "https://github.com/pbatard/rufus/raw/master/res/uefi/uefi-ntfs.img") +sha512sums=('SKIP' + '7413f02754e810c00bc59822314a34ec74663d6dfc441605ea8cd90cc0717db99953b32f30c1bac1b437ea9d3eabeaa7fd171497817642bb1abd728fb2c5290b') pkgver() { - cd "$_pkgname" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + cd "${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } package() { - install -Dm644 $srcdir/uefi-ntfs.img "$pkgdir/usr/share/$_pkgname/uefi-ntfs.img" - install -Dm755 $srcdir/$_pkgname/$_pkgname "$pkgdir/usr/bin/$_pkgname" + install -Dm644 ${srcdir}/uefi-ntfs.img "${pkgdir}/usr/share/${pkgname%-git}/uefi-ntfs.img" + install -Dm755 ${srcdir}/${pkgname%-git}/${pkgname%-git} "${pkgdir}/usr/bin/${pkgname%-git}" } +# vim:set ts=4 sw=4: |