1 # Maintainer: Aaron Griffin <aaron@archlinux.org>
2 # Contributor: Link Dupont <link@subpop.net>
7 pkgdesc="A notepad clone for GTK+ 2.0"
9 url="http://tarot.freeshell.org/leafpad/"
12 makedepends=('intltool')
13 source=("https://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"
14 '0001-truncate.patch')
15 sha256sums=('959d22ae07f22803bc66ff40d373a854532a6e4732680bf8a96a3fbcb9f80a2c'
16 '9d9073ec4684e77cd1a6dd0cec4351750f9f61f2a6bab0e97f06ae6d00b7d2c4')
19 cd "${srcdir}/${pkgname}-${pkgver}"
21 patch -Np1 < "${srcdir}/"0001-truncate.patch
25 cd "${srcdir}/${pkgname}-${pkgver}"
27 ./configure --prefix=/usr --enable-chooser
32 cd "${srcdir}/${pkgname}-${pkgver}"
34 make DESTDIR="${pkgdir}" install
35 echo 'StartupNotify=true' >> "${pkgdir}/usr/share/applications/leafpad.desktop"