diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-13 03:48:21 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-13 03:48:21 +0000 |
commit | 3d6877ee9ee7bba813a4b6be30a11d2b1942c656 (patch) | |
tree | 56a6ea47f39af019747bd61e1dab7e6c4302e805 /core | |
parent | d8679f0250762892ab1e1a6d71badc2e9d42a526 (diff) |
Sun Apr 13 03:42:18 UTC 2014
Diffstat (limited to 'core')
-rw-r--r-- | core/btrfs-progs/PKGBUILD | 36 | ||||
-rw-r--r-- | core/file/PKGBUILD | 38 | ||||
-rw-r--r-- | core/file/file-5.17-off-by-one.patch | 25 | ||||
-rw-r--r-- | core/lvm2/0001-wiping-wipe-DM_snapshot_cow-signature-without-prompt.patch | 199 | ||||
-rw-r--r-- | core/lvm2/0002-snapshot-zero-cow-header-for-read-only-snapshot.patch | 74 | ||||
-rw-r--r-- | core/lvm2/PKGBUILD | 19 | ||||
-rw-r--r-- | core/pcre/PKGBUILD | 34 |
7 files changed, 59 insertions, 366 deletions
diff --git a/core/btrfs-progs/PKGBUILD b/core/btrfs-progs/PKGBUILD index 0c7b57c62..3890c5c46 100644 --- a/core/btrfs-progs/PKGBUILD +++ b/core/btrfs-progs/PKGBUILD @@ -1,22 +1,23 @@ -# $Id: PKGBUILD 202441 2013-12-21 23:13:17Z tomegun $ -# Maintainer: Tom Gundersen <teg@jklm.no> +# $Id: PKGBUILD 210214 2014-04-11 23:33:01Z seblu $ +# Maintainer: Sébastien "Seblu" Luttringer +# Contributor: Tom Gundersen <teg@jklm.no> # Contributor: Tobias Powalowski <tpowa@archlinux.org> pkgname=btrfs-progs -pkgver=3.12 +pkgver=3.14 pkgrel=1 -pkgdesc="btrfs filesystem utilities" -arch=(i686 x86_64) -depends=('glibc' 'e2fsprogs' 'lzo2') +pkgdesc='Btrfs filesystem utilities' +arch=('i686' 'x86_64') +depends=('glibc' 'e2fsprogs' 'lzo2' 'zlib') makedepends=('git') -url="http://btrfs.wiki.kernel.org/" +url='http://btrfs.wiki.kernel.org/' replaces=('btrfs-progs-unstable') conflicts=('btrfs-progs-unstable') provides=('btrfs-progs-unstable') license=('GPL2') source=("git://git.kernel.org/pub/scm/linux/kernel/git/mason/${pkgname}.git#tag=v${pkgver}" - initcpio-install-btrfs - initcpio-hook-btrfs) + 'initcpio-install-btrfs' + 'initcpio-hook-btrfs') install=btrfs-progs.install options=(!staticlibs) md5sums=('SKIP' @@ -32,16 +33,17 @@ build() { package() { cd $pkgname - make prefix=$pkgdir/usr install - install -Dm755 btrfs-select-super $pkgdir/usr/bin + make prefix="$pkgdir"/usr install + install -Dm755 btrfs-select-super "$pkgdir"/usr/bin # fix manpage - mkdir -p $pkgdir/usr/share/ - mv $pkgdir/usr/man $pkgdir/usr/share/man + install -d "$pkgdir"/usr/share/ + mv "$pkgdir"/usr/man "$pkgdir"/usr/share/man # install mkinitcpio hooks - install -Dm644 "$srcdir/initcpio-install-btrfs" \ - "$pkgdir/usr/lib/initcpio/install/btrfs" - install -Dm644 "$srcdir/initcpio-hook-btrfs" \ - "$pkgdir/usr/lib/initcpio/hooks/btrfs" + cd "$srcdir" + install -Dm644 initcpio-install-btrfs "$pkgdir/usr/lib/initcpio/install/btrfs" + install -Dm644 initcpio-hook-btrfs "$pkgdir/usr/lib/initcpio/hooks/btrfs" } + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/core/file/PKGBUILD b/core/file/PKGBUILD index 859091149..9d2291d7f 100644 --- a/core/file/PKGBUILD +++ b/core/file/PKGBUILD @@ -1,37 +1,29 @@ -# $Id: PKGBUILD 207101 2014-03-06 12:36:01Z allan $ -# Maintainer: Allan McRae <allan@archlinux.org> +# $Id: PKGBUILD 210213 2014-04-11 23:33:00Z seblu $ +# Mainainer: Sébastien Luttringer <seblu@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> # Contributor: Andreas Radke <andyrtr@archlinux.org> pkgname=file -pkgver=5.17 -pkgrel=2 -pkgdesc="File type identification utility" +pkgver=5.18 +pkgrel=1 +pkgdesc='File type identification utility' arch=('i686' 'x86_64') license=('custom') groups=('base' 'base-devel') -url="http://www.darwinsys.com/file/" +url='http://www.darwinsys.com/file/' depends=('glibc' 'zlib') -source=(ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz - file-5.17-off-by-one.patch) -md5sums=('e19c47e069ced7b01ccb4db402cc01d3' - 'f36a87784f1db2e415ce09badb38fbe8') - -prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" - - # https://github.com/file/file/commit/70c65d2e1841 - patch -p1 -i $srcdir/file-5.17-off-by-one.patch -} +source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('d420d8f2990cd344673acfbf8d76ff5a') build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd $pkgname-$pkgver ./configure --prefix=/usr --datadir=/usr/share/file - make + make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR=${pkgdir} install - - install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + rmdir "$pkgdir/usr/share/man/man5" } diff --git a/core/file/file-5.17-off-by-one.patch b/core/file/file-5.17-off-by-one.patch deleted file mode 100644 index 0e8beb442..000000000 --- a/core/file/file-5.17-off-by-one.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 70c65d2e1841491f59168db1f905e8b14083fb1c Mon Sep 17 00:00:00 2001 -From: Christos Zoulas <christos@zoulas.com> -Date: Tue, 4 Mar 2014 17:42:19 +0000 -Subject: [PATCH] off by one in out of bounds calculations (Jan Kaluza) - ---- - src/softmagic.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/softmagic.c b/src/softmagic.c -index 170de95..5ed3998 100644 ---- a/src/softmagic.c -+++ b/src/softmagic.c -@@ -72,7 +72,7 @@ private int mcopy(struct magic_set *, union VALUETYPE *, int, int, - private void cvt_32(union VALUETYPE *, const struct magic *); - private void cvt_64(union VALUETYPE *, const struct magic *); - --#define OFFSET_OOB(n, o, i) ((n) < (o) || (i) >= ((n) - (o))) -+#define OFFSET_OOB(n, o, i) ((n) < (o) || (i) > ((n) - (o))) - /* - * softmagic - lookup one file in parsed, in-memory copy of database - * Passed the name and FILE * of one file to be typed. --- -1.8.5.5 - diff --git a/core/lvm2/0001-wiping-wipe-DM_snapshot_cow-signature-without-prompt.patch b/core/lvm2/0001-wiping-wipe-DM_snapshot_cow-signature-without-prompt.patch deleted file mode 100644 index 3e9154bf9..000000000 --- a/core/lvm2/0001-wiping-wipe-DM_snapshot_cow-signature-without-prompt.patch +++ /dev/null @@ -1,199 +0,0 @@ -From a29d36c9ac41aa3aa4818c277c9c0e20cbd6175b Mon Sep 17 00:00:00 2001 -From: Peter Rajnoha <prajnoha@redhat.com> -Date: Mon, 10 Feb 2014 13:28:13 +0100 -Subject: [PATCH 1/2] wiping: wipe DM_snapshot_cow signature without prompt in - newly created LVs -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The libblkid can detect DM_snapshot_cow signature and when creating -new LVs with blkid wiping used (allocation/use_blkid_wiping=1 lvm.conf -setting and --wipe y used at the same time - which it is by default). - -Do not issue any prompts about this signature when new LV is created -and just wipe it right away without asking questions. Still keep the -log in verbose mode though. - -Conflicts: - WHATS_NEW - lib/device/dev-type.c - -[backported to 2.02.105 by Thomas Bächler, thomas@archlinux.org] ---- - WHATS_NEW | 2 ++ - lib/device/dev-type.c | 47 ++++++++++++++++++++++++++++++++--------------- - lib/device/dev-type.h | 6 +++++- - lib/metadata/lv_manip.c | 4 +++- - lib/metadata/metadata.c | 4 +++- - 5 files changed, 45 insertions(+), 18 deletions(-) - -diff --git a/WHATS_NEW b/WHATS_NEW -index 26b63ae..d2a3482 100644 ---- a/WHATS_NEW -+++ b/WHATS_NEW -@@ -1,3 +1,5 @@ -+ Wipe DM_snapshot_cow signature without prompt in new LVs with blkid wiping. -+ - Version 2.02.105 - 20th January 2014 - ==================================== - Fix thin LV flagging for udev to skip scanning only if the LV is wiped. -diff --git a/lib/device/dev-type.c b/lib/device/dev-type.c -index 78b093c..d2ff71e 100644 ---- a/lib/device/dev-type.c -+++ b/lib/device/dev-type.c -@@ -449,17 +449,25 @@ out: - - #ifdef BLKID_WIPING_SUPPORT - -+static inline int _type_in_flag_list(const char *type, uint32_t flag_list) -+{ -+ return (((flag_list & TYPE_LVM2_MEMBER) && !strcmp(type, "LVM2_member")) || -+ ((flag_list & TYPE_LVM1_MEMBER) && !strcmp(type, "LVM1_member")) || -+ ((flag_list & TYPE_DM_SNAPSHOT_COW) && !strcmp(type, "DM_snapshot_cow"))); -+} -+ - static int _blkid_wipe(blkid_probe probe, struct device *dev, const char *name, -- int exclude_lvm_member, int yes, force_t force) -+ uint32_t types_to_exclude, uint32_t types_no_prompt, -+ int yes, force_t force) - { -+ static const char* msg_wiping = "Wiping %s signature on %s."; - const char *offset = NULL, *type = NULL, *magic = NULL, - *usage = NULL, *label = NULL, *uuid = NULL; - loff_t offset_value; - size_t len; - - if (!blkid_probe_lookup_value(probe, "TYPE", &type, NULL)) { -- if (exclude_lvm_member && -- (!strcmp(type, "LVM1_member") || !strcmp(type, "LVM2_member"))) -+ if (_type_in_flag_list(type, types_to_exclude)) - return 1; - if (!blkid_probe_lookup_value(probe, "SBMAGIC_OFFSET", &offset, NULL) && - blkid_probe_lookup_value(probe, "SBMAGIC", &magic, &len)) -@@ -483,12 +491,15 @@ static int _blkid_wipe(blkid_probe probe, struct device *dev, const char *name, - "UUID=\"%s\" TYPE=\"%s\" USAGE=\"%s\"", - name, offset, label, uuid, type, usage); - -- if (!yes && (force == PROMPT) && -- yes_no_prompt("WARNING: %s signature detected on %s at offset %s. " -- "Wipe it? [y/n] ", type, name, offset) != 'y') -- return_0; -+ if (!_type_in_flag_list(type, types_no_prompt)) { -+ if (!yes && (force == PROMPT) && -+ yes_no_prompt("WARNING: %s signature detected on %s at offset %s. " -+ "Wipe it? [y/n] ", type, name, offset) != 'y') -+ return_0; -+ log_print_unless_silent(msg_wiping, type, name); -+ } else -+ log_verbose(msg_wiping, type, name); - -- log_print_unless_silent("Wiping %s signature on %s.", type, name); - if (!dev_set(dev, offset_value, len, 0)) { - log_error("Failed to wipe %s signature on %s.", type, name); - return 0; -@@ -498,7 +509,8 @@ static int _blkid_wipe(blkid_probe probe, struct device *dev, const char *name, - } - - static int _wipe_known_signatures_with_blkid(struct device *dev, const char *name, -- int exclude_lvm_member, -+ uint32_t types_to_exclude, -+ uint32_t types_no_prompt, - int yes, force_t force) - { - blkid_probe probe = NULL; -@@ -526,7 +538,7 @@ static int _wipe_known_signatures_with_blkid(struct device *dev, const char *nam - - while (!blkid_do_probe(probe)) { - found++; -- if (_blkid_wipe(probe, dev, name, exclude_lvm_member, yes, force)) -+ if (_blkid_wipe(probe, dev, name, types_to_exclude, types_no_prompt, yes, force)) - wiped++; - } - -@@ -580,7 +592,8 @@ static int _wipe_signature(struct device *dev, const char *type, const char *nam - } - - static int _wipe_known_signatures_with_lvm(struct device *dev, const char *name, -- int exclude_lvm_member, -+ uint32_t types_to_exclude __attribute__((unused)), -+ uint32_t types_no_prompt __attribute__((unused)), - int yes, force_t force) - { - if (!_wipe_signature(dev, "software RAID md superblock", name, 4, yes, force, dev_is_md) || -@@ -592,16 +605,20 @@ static int _wipe_known_signatures_with_lvm(struct device *dev, const char *name, - } - - int wipe_known_signatures(struct cmd_context *cmd, struct device *dev, -- const char *name, int exclude_lvm_member, -- int yes, force_t force) -+ const char *name, uint32_t types_to_exclude, -+ uint32_t types_no_prompt, int yes, force_t force) - { - #ifdef BLKID_WIPING_SUPPORT - if (find_config_tree_bool(cmd, allocation_use_blkid_wiping_CFG, NULL)) - return _wipe_known_signatures_with_blkid(dev, name, -- exclude_lvm_member, yes, force); -+ types_to_exclude, -+ types_no_prompt, -+ yes, force); - #endif - return _wipe_known_signatures_with_lvm(dev, name, -- exclude_lvm_member, yes, force); -+ types_to_exclude, -+ types_no_prompt, -+ yes, force); - } - - #ifdef __linux__ -diff --git a/lib/device/dev-type.h b/lib/device/dev-type.h -index 284280e..b1520ee 100644 ---- a/lib/device/dev-type.h -+++ b/lib/device/dev-type.h -@@ -60,8 +60,12 @@ int dev_is_swap(struct device *dev, uint64_t *signature); - int dev_is_luks(struct device *dev, uint64_t *signature); - - /* Signature wiping. */ -+#define TYPE_LVM1_MEMBER 0x001 -+#define TYPE_LVM2_MEMBER 0x002 -+#define TYPE_DM_SNAPSHOT_COW 0x004 - int wipe_known_signatures(struct cmd_context *cmd, struct device *dev, const char *name, -- int exclude_lvm_member, int yes, force_t force); -+ uint32_t types_to_exclude, uint32_t types_no_prompt, -+ int yes, force_t force); - - /* Type-specific device properties */ - unsigned long dev_md_stripe_width(struct dev_types *dt, struct device *dev); -diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c -index f45c89f..66f3bd7 100644 ---- a/lib/metadata/lv_manip.c -+++ b/lib/metadata/lv_manip.c -@@ -5448,7 +5448,9 @@ int wipe_lv(struct logical_volume *lv, struct wipe_params wp) - if (wp.do_wipe_signatures) { - log_verbose("Wiping known signatures on logical volume \"%s/%s\"", - lv->vg->name, lv->name); -- if (!wipe_known_signatures(lv->vg->cmd, dev, name, 0, wp.yes, wp.force)) -+ if (!wipe_known_signatures(lv->vg->cmd, dev, name, 0, -+ TYPE_DM_SNAPSHOT_COW, -+ wp.yes, wp.force)) - stack; - } - -diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c -index 4d4778b..e4e1771 100644 ---- a/lib/metadata/metadata.c -+++ b/lib/metadata/metadata.c -@@ -1372,7 +1372,9 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name, - goto bad; - } - -- if (!wipe_known_signatures(cmd, dev, name, 1, pp->yes, pp->force)) { -+ if (!wipe_known_signatures(cmd, dev, name, -+ TYPE_LVM1_MEMBER | TYPE_LVM2_MEMBER, -+ 0, pp->yes, pp->force)) { - log_error("Aborting pvcreate on %s.", name); - goto bad; - } --- -1.9.0 - diff --git a/core/lvm2/0002-snapshot-zero-cow-header-for-read-only-snapshot.patch b/core/lvm2/0002-snapshot-zero-cow-header-for-read-only-snapshot.patch deleted file mode 100644 index b1f9775bb..000000000 --- a/core/lvm2/0002-snapshot-zero-cow-header-for-read-only-snapshot.patch +++ /dev/null @@ -1,74 +0,0 @@ -From d5c2c146ee050905a175b73dd3d0155f46d5cf81 Mon Sep 17 00:00:00 2001 -From: Zdenek Kabelac <zkabelac@redhat.com> -Date: Wed, 26 Feb 2014 00:17:11 +0100 -Subject: [PATCH 2/2] snapshot: zero cow header for read-only snapshot -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -When read-only snapshot was created, tool was skipping header -initialization of cow device. If it happened device has been -already containing header from some previous snapshot, it's -been 'reused' for a newly created snapshot instead of being cleared. - -Conflicts: - WHATS_NEW - -[Backported to 2.02.105 by Thomas Bächler (thomas@archlinux.org)] ---- - WHATS_NEW | 1 + - test/shell/snapshot-usage.sh | 11 +++++++++++ - tools/lvcreate.c | 8 ++++++-- - 3 files changed, 18 insertions(+), 2 deletions(-) - -diff --git a/WHATS_NEW b/WHATS_NEW -index d2a3482..eeb3517 100644 ---- a/WHATS_NEW -+++ b/WHATS_NEW -@@ -1,3 +1,4 @@ -+ Zero snapshot COW header when creating read-only snapshot. - Wipe DM_snapshot_cow signature without prompt in new LVs with blkid wiping. - - Version 2.02.105 - 20th January 2014 -diff --git a/test/shell/snapshot-usage.sh b/test/shell/snapshot-usage.sh -index 9e6a14f..17abe9b 100644 ---- a/test/shell/snapshot-usage.sh -+++ b/test/shell/snapshot-usage.sh -@@ -128,4 +128,15 @@ vgremove -ff $vg1 - - fi - -+lvremove -f $vg -+ -+# Check snapshot really deletes COW header for read-only snapshot -+aux lvmconf "allocation/wipe_signatures_when_zeroing_new_lvs = 1" -+lvcreate -L10 -n $lv1 $vg -+lvcreate -s -L10 -n snap $vg/$lv1 -+# Populate snapshot with some filesystem signatures -+mkfs.ext4 "$DM_DEV_DIR/$vg/snap" -+lvremove -f $vg/snap -+lvcreate -s -pr -l12 -n snap $vg/$lv1 -+ - vgremove -ff $vg -diff --git a/tools/lvcreate.c b/tools/lvcreate.c -index d0ca7bc..e8270c4 100644 ---- a/tools/lvcreate.c -+++ b/tools/lvcreate.c -@@ -644,8 +644,12 @@ static int _read_activation_params(struct lvcreate_params *lp, struct cmd_contex - lp->permission = arg_uint_value(cmd, permission_ARG, - LVM_READ | LVM_WRITE); - -- /* Must not zero/wipe read only volume */ -- if (!(lp->permission & LVM_WRITE)) { -+ if (lp->snapshot) { -+ /* Snapshot has to zero COW header */ -+ lp->zero = 1; -+ lp->wipe_signatures = 0; -+ } else if (!(lp->permission & LVM_WRITE)) { -+ /* Must not zero/wipe read only volume */ - lp->zero = 0; - lp->wipe_signatures = 0; - } --- -1.9.0 - diff --git a/core/lvm2/PKGBUILD b/core/lvm2/PKGBUILD index 566e06924..0fcd10d11 100644 --- a/core/lvm2/PKGBUILD +++ b/core/lvm2/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 206501 2014-02-28 22:40:15Z thomas $ +# $Id: PKGBUILD 210240 2014-04-12 17:56:22Z thomas $ # Maintainer: Eric Bélanger <eric@archlinux.org> # Maintainer: Thomas Bächler <thomas@archlinux.org> pkgbase=lvm2 pkgname=('lvm2' 'device-mapper') -pkgver=2.02.105 -pkgrel=2 +pkgver=2.02.106 +pkgrel=1 arch=('i686' 'x86_64') url="http://sourceware.org/lvm2/" license=('GPL2' 'LGPL2.1') @@ -21,10 +21,8 @@ source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${pkgver}.tgz{,.asc} dmeventd.socket lvm-monitoring.service lvmetad.service - lvmetad.socket - 0001-wiping-wipe-DM_snapshot_cow-signature-without-prompt.patch - 0002-snapshot-zero-cow-header-for-read-only-snapshot.patch) -sha1sums=('796163e766480cdc427cd443dc1336ae8e8e3bd7' + lvmetad.socket) +sha1sums=('0943d1c401675dfdc2118b9ad4fd4d7fb50eaaff' 'SKIP' '76e83966d1bc84f9a1e30bcaff84b8b8fefbca0f' 'ff0fdf0a3005a41acd4b36865056109effc3474b' @@ -35,17 +33,12 @@ sha1sums=('796163e766480cdc427cd443dc1336ae8e8e3bd7' '1d56f47a81350ae37ffbf61ee036fe31f4c5d504' 'aad90fce0e12eda41d38571d8eb27c5d5a8c59ec' 'f857a4a63fcc604a981e56875edda91767d4f1bf' - 'fcfc265e3b10294cc4b10949a342e9db4310b186' - '044d426c49919b5a86fd84228d1c7e1f3a86c59a' - '4f83555347e7c3596c53d9009f260c1d65639e6d') + 'fcfc265e3b10294cc4b10949a342e9db4310b186') prepare() { cd LVM2.${pkgver} # enable lvmetad sed -i 's|use_lvmetad = 0|use_lvmetad = 1|' conf/example.conf.in - - patch -p1 -i "${srcdir}"/0001-wiping-wipe-DM_snapshot_cow-signature-without-prompt.patch - patch -p1 -i "${srcdir}"/0002-snapshot-zero-cow-header-for-read-only-snapshot.patch } build() { diff --git a/core/pcre/PKGBUILD b/core/pcre/PKGBUILD index e726405f9..f5e0da1c1 100644 --- a/core/pcre/PKGBUILD +++ b/core/pcre/PKGBUILD @@ -1,23 +1,25 @@ -# $Id: PKGBUILD 204393 2014-01-19 00:33:32Z allan $ -# Maintainer: Allan McRae <allan@archlinux.org> +# $Id: PKGBUILD 210215 2014-04-11 23:57:22Z seblu $ +# Maintainer: Sébastien "Seblu" Luttringer +# Contributor: Allan McRae <allan@archlinux.org> # Contributor: Eric Belanger <eric@archlinux.org> # Contributor: John Proctor <jproctor@prium.net> pkgname=pcre -pkgver=8.34 -pkgrel=2 -pkgdesc="A library that implements Perl 5-style regular expressions" +pkgver=8.35 +pkgrel=1 +pkgdesc='A library that implements Perl 5-style regular expressions' arch=('i686' 'x86_64') -url="http://www.pcre.org/" +url='http://www.pcre.org/' license=('BSD') -depends=('readline' 'zlib' 'bzip2') -source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2{,.sig}) -md5sums=('5439e321351bddd5533551bbce128d07' +depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'bash') +source=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$pkgname-$pkgver.tar.bz2"{,.sig}) +md5sums=('6aacb23986adccd9b3bc626c00979958' 'SKIP') build() { - cd "${srcdir}"/${pkgname}-${pkgver} - ./configure --prefix=/usr \ + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ --enable-unicode-properties \ --enable-pcre16 \ --enable-pcre32 \ @@ -29,13 +31,15 @@ build() { } check() { - cd "${srcdir}"/${pkgname}-${pkgver} + cd $pkgname-$pkgver make -j1 check } package() { - cd "${srcdir}"/${pkgname}-${pkgver} - make DESTDIR="${pkgdir}" install + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install - install -Dm644 LICENCE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } + +# vim:set ts=2 sw=2 et: |