diff options
author | Det | 2015-06-14 04:13:28 +0300 |
---|---|---|
committer | Det | 2015-06-14 04:14:16 +0300 |
commit | f968581a9011845cb2b44d2558141a23a2698e54 (patch) | |
tree | d91bed42bbc85c345a559da67c0c53d4a8e55f8d | |
download | aur-xcmiscproto-git.tar.gz |
Initial import: 1.2.2.3.r53.gc27c825-1
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a8f7656704da --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = xcmiscproto-git + pkgdesc = X11 XC-Miscellaneous extension wire protocol - Git version + pkgver = 1.2.2.3.r53.gc27c825 + pkgrel = 1 + url = http://cgit.freedesktop.org/xorg/proto/xcmiscproto/ + arch = any + license = custom + makedepends = git + makedepends = xorg-util-macros + provides = xcmiscproto=1.2.2.3.r53.gc27c825 + conflicts = xcmiscproto + source = git://anongit.freedesktop.org/xorg/proto/xcmiscproto + md5sums = SKIP + +pkgname = xcmiscproto-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d82ea6e29514 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Det <nimetonmaili g-mail> +# Based on [extra]'s xcmiscproto: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/xcmiscproto + +_pkgname=xcmiscproto +pkgname=$_pkgname-git +pkgver=1.2.2.3.r53.gc27c825 +pkgrel=1 +pkgdesc="X11 XC-Miscellaneous extension wire protocol - Git version" +arch=('any') +url="http://cgit.freedesktop.org/xorg/proto/$_pkgname/" +license=('custom') +makedepends=('git' 'xorg-util-macros') +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +source=("git://anongit.freedesktop.org/xorg/proto/$_pkgname") +md5sums=('SKIP') + +pkgver() { + cd $_pkgname + + echo $(git describe --long | cut -d "-" -f2-3 | tr - .).r$(git rev-list HEAD --count).$(git describe --long | cut -d "-" -f4) +} + +build() { + cd $_pkgname + + msg2 "Starting autogen.sh..." + ./autogen.sh --prefix=/usr + + msg2 "Starting make..." + make +} + +package() { + cd $_pkgname + + msg2 "Starting make install..." + make DESTDIR="$pkgdir" install + + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING" +} |