summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfab312016-02-25 23:17:18 +0100
committerfab312016-02-25 23:17:18 +0100
commit389059003181dddf7b20b172648690dd394f8219 (patch)
treeed2ece323f0c0c4419318cf4d80b974b943d6d97
parente54d2ff876e45f1a5cdc064035cdac55c79ee360 (diff)
downloadaur-389059003181dddf7b20b172648690dd394f8219.tar.gz
patch file to work well ;)
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 14 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0bcfbbabbd75..ccc709ec7da2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = plosetup
pkgdesc = helper to set up loop devices for partitions in a disk image
pkgver = 1.0
- pkgrel = 1
+ pkgrel = 2
url = http://zwizwa.be/darcs/pool/bin/plosetup
arch = any
license = Artistic2.0
diff --git a/PKGBUILD b/PKGBUILD
index ea6e5fed4e3f..6b9567cc35d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Fabien Devaux <fdev31@gmail.com>
pkgname=plosetup
pkgver=1.0
-pkgrel=1
+pkgrel=2
epoch=
pkgdesc="helper to set up loop devices for partitions in a disk image"
arch=("any")
@@ -25,6 +25,18 @@ md5sums=("2de1300fd8cfeab9ab2de105f5144bda")
validpgpkeys=()
prepare() {
+cat <<EOF | patch --follow-symlinks plosetup
+--- plosetup~ 2016-02-25 22:38:43.000000000 +0100
++++ plosetup 2016-02-25 22:51:06.336526290 +0100
+@@ -84,6 +84,7 @@
+
+ case "\$(file -b \$IMG)" in
+ (x86\\ boot\\ sector*) :;;
++ (DOS*\\ boot\\ sector*) :;;
+ *)
+ echo "E: \$ME: \$IMG does not have a msdos partition table"
+ exit 3
+EOF
chmod +x plosetup
}