Skip to content
PKGBUILD 701 B
Newer Older
Seblu's avatar
Seblu committed
# Maintainer: Sébastien Luttringer

pkgname=archversion
pkgver=$(cd "$startdir/.."; ./bootstrap; ./configure -V|sed -n 's/archversion configure //p')
pkgrel=1
pkgdesc='Archlinux Version Controller'
arch=('any')
url='https://github.com/seblu/archversion'
license=('GPL2')
Seblu's avatar
Seblu committed
depends=('python' 'pyalpm' 'python-xdg')
Seblu's avatar
Seblu committed

prepare() {
  cd "$startdir/.."
Seblu's avatar
Seblu committed
  make dist
  mv -f $pkgname-$pkgver.tar.gz "$srcdir"
  cd "$srcdir"
  tar xf $pkgname-$pkgver.tar.gz
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make install DESTDIR="$pkgdir"
  install -Dm644 README.rst "$pkgdir/usr/share/$pkgname/doc/README.rst"
Seblu's avatar
Seblu committed
}

# vim:set ts=2 sw=2 et: