Initial PKGBUILD

This commit is contained in:
Doug Newgard 2014-10-25 23:41:43 -05:00
commit d0cdd62249
4 changed files with 92 additions and 0 deletions

25
.SRCINFO Normal file
View file

@ -0,0 +1,25 @@
pkgbase = etui-git
pkgdesc = Multi-document rendering application and library using the EFL
pkgver = 0.0.2.r183.b2ebc49
pkgrel = 1
url = http://www.enlightenment.org
install = etui.install
arch = i686
arch = x86_64
license = GPL3
license = AGPL3
makedepends = git
depends = elementary
depends = freetype2
depends = openjpeg
depends = libarchive
depends = djvulibre
depends = ewebkit
depends = ghostscript
provides = etui=0.0.2.r183.b2ebc49
conflicts = etui
source = git://github.com/vtorri/etui.git
sha256sums = SKIP
pkgname = etui-git

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*~
*/
*.tar.*
*.log

50
PKGBUILD Normal file
View file

@ -0,0 +1,50 @@
# Maintainer: Doug Newgard <scimmia at archlinux dot info>
_pkgname=etui
pkgname=$_pkgname-git
pkgver=0.0.2.r183.b2ebc49
pkgrel=1
pkgdesc="Multi-document rendering application and library using the EFL"
arch=('i686' 'x86_64')
url="http://www.enlightenment.org"
license=('GPL3' 'AGPL3')
depends=('elementary' 'freetype2' 'openjpeg' 'libarchive' 'djvulibre' 'ewebkit' 'ghostscript')
makedepends=('git')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
install=$_pkgname.install
source=("git://github.com/vtorri/etui.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
for _i in v_maj v_min v_mic; do
local v_ver=${v_ver#.}.$(grep -m1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
done
v_ver=$(awk -F , -v v_ver=$v_ver '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
printf "$v_ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
export CFLAGS="$CFLAGS -fvisibility=hidden -I/usr/include/ghostscript"
./autogen.sh \
--prefix=/usr
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
# install text files
install -d "$pkgdir/usr/share/doc/$_pkgname/"
install -m644 -t "$pkgdir/usr/share/doc/$_pkgname/" AUTHORS ChangeLog NEWS README
}

13
etui.install Normal file
View file

@ -0,0 +1,13 @@
post_upgrade() {
[[ -x /usr/bin/update-desktop-database ]] && update-desktop-database -q
[[ -x /usr/bin/gtk-update-icon-cache ]] && gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
}
post_install() {
post_upgrade
printf "Please check the README file for information about running this software.\n"
}
post_remove() {
post_upgrade
}