efte-1.1-1

This commit is contained in:
Jaroslav Lichtblau 2014-12-01 19:52:13 +01:00
parent d9f7a313db
commit 286a4aec44
3 changed files with 28 additions and 10 deletions

View file

@ -2,13 +2,15 @@ pkgbase = efte
pkgdesc = Fast configurable programmers editor
pkgver = 1.1
pkgrel = 1
url = http://efte.sourceforge.net/
url = http://sourceforge.net/projects/efte/
install = efte.install
arch = i686
arch = x86_64
license = GPL
license = custom
makedepends = cmake
depends = libxpm
depends = desktop-file-utils
source = http://downloads.sourceforge.net/sourceforge/efte/efte-1.1.tar.bz2
md5sums = f92974f8f438842bae3b837fe6eff099

View file

@ -6,23 +6,28 @@ pkgver=1.1
pkgrel=1
pkgdesc="Fast configurable programmers editor"
arch=('i686' 'x86_64')
url="http://efte.sourceforge.net/"
url="http://sourceforge.net/projects/efte/"
license=('GPL' 'custom')
depends=('libxpm')
depends=('libxpm' 'desktop-file-utils')
makedepends=('cmake')
install=$pkgname.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('f92974f8f438842bae3b837fe6eff099')
build() {
cd ${srcdir}/$pkgname-$pkgver
cd "${srcdir}"/$pkgname-$pkgver
cmake -DBUILD_X=ON \
-DBUILD_CONSOLE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr . || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
#license file
install -D -m644 Artistic ${pkgdir}/usr/share/licenses/$pkgname/Artistic || return 1
-DCMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" install
#license
install -Dm644 Artistic "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
}

11
efte.install Normal file
View file

@ -0,0 +1,11 @@
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}