diff options
author | Michał Górny | 2015-08-18 23:23:45 +0200 |
---|---|---|
committer | Michał Górny | 2015-08-18 23:23:45 +0200 |
commit | 8b4af13493f847a36dc72c5390025b493002003b (patch) | |
tree | 8dcc606f7ed17517baa350d8da86d0dce6a6105f | |
download | aur-8b4af13493f847a36dc72c5390025b493002003b.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | gcal.install | 20 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0a317c0ae544 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = gcal + pkgdesc = Display hybrid and proleptic Julian and Gregorian calendar sheets + pkgver = 4 + pkgrel = 1 + url = http://www.gnu.org/software/gcal/ + install = gcal.install + arch = i686 + arch = x86_64 + license = GPL + depends = perl + source = ftp://ftp.gnu.org/pub/gnu/gcal/gcal-4.tar.xz + md5sums = 24f29538cfb06f461951f9e709c476a2 + +pkgname = gcal + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8a42c5cebaab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Michał Górny <zrchos+arch@gmail.com> +# Contributor: Brandon Invergo <brandon@invergo.net> +# Contributor: juergen <juergen@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=gcal +pkgver=4 +pkgrel=1 +pkgdesc="Display hybrid and proleptic Julian and Gregorian calendar sheets" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/gcal/" +license=('GPL') +depends=('perl') +install=gcal.install +source=(ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz) +md5sums=('24f29538cfb06f461951f9e709c476a2') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info + make || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} diff --git a/gcal.install b/gcal.install new file mode 100644 index 000000000000..3611f945d81f --- /dev/null +++ b/gcal.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(gcal.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |