diff options
author | Det | 2015-06-14 04:13:28 +0300 |
---|---|---|
committer | Det | 2015-06-14 04:14:16 +0300 |
commit | 332ee120e975618d7dae4007ba1debfb411d62ff (patch) | |
tree | fa30cceed6ca07871e439fee7d40563d772f1a7b | |
download | aur-videoproto-git.tar.gz |
Initial import: 2.3.2.1.r47.g3841508-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..5a27070607a6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = videoproto-git + pkgdesc = X11 Video extension wire protocol - Git version + pkgver = 2.3.2.1.r47.g3841508 + pkgrel = 1 + url = http://cgit.freedesktop.org/xorg/proto/videoproto/ + arch = any + license = custom + makedepends = git + makedepends = xorg-util-macros + provides = videoproto=2.3.2.1.r47.g3841508 + conflicts = videoproto + source = git://anongit.freedesktop.org/xorg/proto/videoproto + md5sums = SKIP + +pkgname = videoproto-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..02f2972cbf92 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Det <nimetonmaili g-mail> +# Based on [extra]'s videoproto: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/videoproto + +_pkgname=videoproto +pkgname=$_pkgname-git +pkgver=2.3.2.1.r47.g3841508 +pkgrel=1 +pkgdesc="X11 Video 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" +} |