summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBrian Bidulock2015-07-08 23:49:26 -0600
committerBrian Bidulock2015-07-08 23:49:26 -0600
commit615a2d2e8c0c2b16f129ae08cf9e03a2d85d28a7 (patch)
tree28ba1cf376228db1bf9ab70086b5ff94092bca99 /PKGBUILD
downloadaur-615a2d2e8c0c2b16f129ae08cf9e03a2d85d28a7.tar.gz
initial version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e207f8401bf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=fltk-editor
+_pkgname=fltk
+pkgver=1.3.2
+pkgrel=1
+pkgdesc="Simple text editor application for FLTK"
+arch=('i686' 'x86_64')
+url="http://www.fltk.org/"
+license=('LGPL')
+depends=('fltk')
+makedepends=('gendesk')
+source=(http://fltk.org/pub/fltk/$pkgver/fltk-$pkgver-source.tar.gz)
+md5sums=('9f7e707d4fb7a5a76f0f9b73ff70623d')
+
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
+ -e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
+ gendesk -n -f --pkgname=$pkgname --pkgdesc="Simple text editor" --name="FLTK Editor" --categories="Utility;TextEditor"
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ install -Dm755 test/editor "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+}