summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32c56cf3ce82e8e122ab14c595996533bf774247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: James Smith <jslonescout AT icloud DOT com>
# Contributor: Thomas Ascher <thomas.ascher@gmx.at>

_pkgname=Terminal
pkgname=terminal.app
pkgrel=4
pkgver=0.9.9
pkgdesc='A terminal emulator for GNUstep'
arch=('i686' 'x86_64' 'armv7h')
url='http://www.nongnu.org/gap/terminal/index.html'
license=('GPL2')
groups=('gnustep-apps')
depends=('gnustep-base' 'gnustep-gui' 'gnustep-back')
makedepends=('gcc-objc')
source=("https://savannah.nongnu.org/download/gap/Terminal-$pkgver.tar.gz"
	"http://deb.debian.org/debian/pool/main/t/terminal.app/terminal.app_0.9.9-3.debian.tar.xz")
sha256sums=('27f81bbecdbd10cde8c080012cde4973bec20e551c58c29f353733cf03c220e9'
	"SKIP")

prepare() {
  cd "$_pkgname-$pkgver"
  for patch in ../debian/patches/*.patch; do
    patch < $patch
  done
}

build() {
  cd "$_pkgname-$pkgver"
  source /usr/share/GNUstep/Makefiles/GNUstep.sh
  make
}

package() {
  cd "$_pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  install -Dm644 "$pkgdir/usr/lib/GNUstep/Applications/$_pkgname.app/Resources/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
}