diff options
author | Justin Dray | 2015-05-28 13:07:38 +1000 |
---|---|---|
committer | Justin Dray | 2015-05-28 13:07:38 +1000 |
commit | fb6e68ed7611f9e5c93efed134f6ae2f8263e45f (patch) | |
tree | 246852fc40ae26d2823b6ddcbd0ceb3294becda7 /PKGBUILD | |
download | aur-fb6e68ed7611f9e5c93efed134f6ae2f8263e45f.tar.gz |
Cleaned up organization for arch packages in prep for aur4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e9dac05e4555 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Justin Dray <justin@dray.be> +# Previous maintainer: bobpaul (bobpaul on archlinux forumsBoohbah <boohbah at gmail.com>) +# Contributor: Mikeserv + +_gitname=bcache-tools +pkgname=${_gitname}-git +pkgver=1.0.8.r0.ga73679b +pkgrel=1 +pkgdesc="Userspace tools for bcache until bcache merges with either dm or md" +changelog=bcache-tools-git.changelog +arch=('i686' 'x86_64') +url="http://bcache.evilpiepirate.org/" +license=('GPL') +depends=('util-linux') +makedepends=('git') +provides=('bcache-tools') +conflicts=('bcache-tools') +install="${pkgname}.install" +source=("git+https://github.com/g2p/${_gitname}.git" + 'initcpio-arch.patch') +md5sums=('SKIP' + '208d7024340b8db3cf21325df40b6267') + +# set _gitrev to a git revision (man gitrevisions) like a tag, a commit sha1 +# hash or a branch name to build from this tree instead of master + +# _gitrev="" +#_gitrev="89f11b135d1" + +pkgver() { + cd "${srcdir}/${_gitname}" + [[ -n $_gitrev ]] && git reset --hard "$_gitrev" + git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//' +} + +prepare() { + cd "${srcdir}/${_gitname}" + patch -Np1 -i "${srcdir}/initcpio-arch.patch" +} + +build() { + cd "${srcdir}/${_gitname}" + make +} + +package() { + cd "${srcdir}/${_gitname}" + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/lib/udev/rules.d" + mkdir -p "${pkgdir}/usr/share/man/man8" + mkdir -p "${pkgdir}/usr/lib/initcpio/install" + + make DESTDIR="${pkgdir}" install +} |