diff options
author | Florian Dejonckheere | 2015-02-05 10:07:46 +0100 |
---|---|---|
committer | Florian Dejonckheere | 2015-02-05 10:07:46 +0100 |
commit | 80fa93f39b4b561eba87ed6308fdcf881299cdcd (patch) | |
tree | 10857de9a36bb945b409370eb39fd191583d4f9d | |
parent | 6567806a84682f5d0d4c77ec073521be72dd2751 (diff) | |
download | aur-80fa93f39b4b561eba87ed6308fdcf881299cdcd.tar.gz |
Flatten directory structure
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 26 insertions, 28 deletions
@@ -1,23 +1,21 @@ pkgbase = libnotify-id-git pkgdesc = Gnome notification library, including ID patch - pkgver = 0.7.5.1.g6982957 + pkgver = 20130129 pkgrel = 1 url = http://library.gnome.org/devel/libnotify/ arch = i686 arch = x86_64 - license = GPL2 + license = GPL2.1 makedepends = pkgconfig makedepends = git makedepends = gobject-introspection makedepends = gtk-doc - makedepends = gnome-common + makedepends = gnome-common-git provides = libnotify=0.7.5 conflicts = libnotify conflicts = libnotify-git options = !libtool - source = libnotify-id-git::git://git.gnome.org/libnotify.git source = https://launchpadlibrarian.net/105791133/print-and-replace-id-v3.patch - md5sums = SKIP md5sums = f75d23de7ee23e37ac36889ece359587 pkgname = libnotify-id-git @@ -1,38 +1,38 @@ # Maintainer: Florian Dejonckheere <florian@floriandejonckheere.be> pkgname=libnotify-id-git -pkgver=0.7.5.1.g6982957 +pkgver=20130129 pkgrel=1 pkgdesc="Gnome notification library, including ID patch" arch=('i686' 'x86_64') -license=('GPL2') +license=('GPL2.1') url="http://library.gnome.org/devel/libnotify/" -makedepends=('pkgconfig' 'git' 'gobject-introspection' 'gtk-doc' 'gnome-common') +depends=() +makedepends=('pkgconfig' 'git' 'gobject-introspection' 'gtk-doc' 'gnome-common-git') options=('!libtool') conflicts=('libnotify' 'libnotify-git') provides=('libnotify=0.7.5') -source=('libnotify-id-git::git://git.gnome.org/libnotify.git' - 'https://launchpadlibrarian.net/105791133/print-and-replace-id-v3.patch') -md5sums=('SKIP' - 'f75d23de7ee23e37ac36889ece359587') +source=('https://launchpadlibrarian.net/105791133/print-and-replace-id-v3.patch') +md5sums=('f75d23de7ee23e37ac36889ece359587') -pkgver(){ - cd "${srcdir}/${pkgname}" - git describe --always | sed 's|-|.|g' -} +_gitroot="git://git.gnome.org/libnotify.git" +_gitname="libnotify" -prepare() { - cd "${srcdir}/${pkgname}" - patch -p1 < ../../print-and-replace-id-v3.patch -} -build(){ - cd "${srcdir}/${pkgname}" - ./autogen.sh --prefix=/usr - make -} +build() { + cd ${srcdir} + msg "Connecting to git.gnome.org GIT server...." + + if [ -d ${srcdir}/$_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi -package(){ - cd "${srcdir}/${pkgname}" - make DESTDIR="${pkgdir}" install + cd ${srcdir}/$_gitname + patch -p1 < ../../print-and-replace-id-v3.patch + ./autogen.sh --prefix=/usr + make || return 1 + make DESTDIR="$pkgdir/" install || return 1 } |