summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDet2015-06-14 04:13:28 +0300
committerDet2015-06-14 04:14:16 +0300
commit9f5a98c4ed12a3fb6805b24e76f310c2e9ba3535 (patch)
treec40b6e0cfe39c6af1d0efcf42c395b374f0e90f8 /PKGBUILD
downloadaur-xextproto-git.tar.gz
Initial import: 7.3.0.0.r138.g66afec3-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..562d3a195286
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Det <nimetonmaili g-mail>
+# Based on [extra]'s xextproto: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/xextproto
+
+_pkgname=xextproto
+pkgname=$_pkgname-git
+pkgver=7.3.0.0.r138.g66afec3
+pkgrel=1
+pkgdesc="X11 various extension wire protocol - Git version"
+arch=('any')
+url="http://cgit.freedesktop.org/xorg/proto/$_pkgname/"
+license=('custom')
+makedepends=('docbook-xsl' 'git' 'xmlto' '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"
+}