<!DOCTYPE html>
<html lang='en'>
<head>
<title>PKGBUILD\trunk - svntogit/community.git - Git clone of the 'community' repository
</title>
<meta name='generator' content='cgit v1.2.1-1-g437b'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit.css'/>
<link rel='shortcut icon' href='/favicon.ico'/>
<link rel='alternate' title='Atom feed' href='https://git.archlinux.org/svntogit/community.git/atom/trunk/PKGBUILD?h=packages/stardict' type='application/atom+xml'/>
<link rel='vcs-git' href='https://git.archlinux.org/svntogit/community.git' title='svntogit/community.git Git repository'/>
<link rel='vcs-git' href='git://git.archlinux.org/svntogit/community.git' title='svntogit/community.git Git repository'/>
<link rel='vcs-git' href='ssh://git.archlinux.org/srv/git/svntogit/community.git' title='svntogit/community.git Git repository'/>
</head>
<body>
	<div id="archnavbar"><!-- Arch Linux global navigation bar -->
		<div id="archnavbarlogo">
			<p><a href="http://www.archlinux.org/" title="Arch news, packages, projects and more"></a></p>
		</div>
		<div id="archnavbarmenu">
			<ul id="archnavbarlist">
				<li id="anb-home"><a href="http://www.archlinux.org/" title="Arch news, packages, projects and more">Home</a></li>
				<li id="anb-packages"><a href="http://www.archlinux.org/packages/" title="Arch Package Database">Packages</a></li>
				<li id="anb-forums"><a href="https://bbs.archlinux.org/" title="Community forums">Forums</a></li>
				<li id="anb-wiki"><a href="https://wiki.archlinux.org/" title="Community documentation">Wiki</a></li>
				<li id="anb-bugs"><a href="https://bugs.archlinux.org/" title="Report and follow bugs">Bugs</a></li>
				<li id="anb-sec"><a href="https://security.archlinux.org/" title="Security Tracker">Security</a></li>
				<li id="anb-aur"><a href="https://aur.archlinux.org/" title="Arch Linux User Repository">AUR</a></li>
				<li id="anb-download"><a href="http://www.archlinux.org/download/" title="Get Arch Linux">Download</a></li>
			</ul>
		</div>
	</div><!-- #archnavbar -->
<div id='cgit'><table id='header'>
<tr>
<td class='main'><a href='/'>index</a> : <a title='svntogit/community.git' href='/svntogit/community.git/'>svntogit/community.git</a></td></tr>
<tr><td class='sub'>Git clone of the 'community' repository
</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/svntogit/community.git/?h=packages/stardict'>summary</a><a href='/svntogit/community.git/refs/?h=packages/stardict'>refs</a><a href='/svntogit/community.git/log/trunk/PKGBUILD?h=packages/stardict'>log</a><a class='active' href='/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/stardict'>tree</a><a href='/svntogit/community.git/commit/trunk/PKGBUILD?h=packages/stardict'>commit</a><a href='/svntogit/community.git/diff/trunk/PKGBUILD?h=packages/stardict'>diff</a><a href='/svntogit/community.git/stats/trunk/PKGBUILD?h=packages/stardict'>stats</a></td><td class='form'><form class='right' method='get' action='/svntogit/community.git/log/trunk/PKGBUILD'>
<input type='hidden' name='h' value='packages/stardict'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/svntogit/community.git/tree/?h=packages/stardict'>root</a>/<a href='/svntogit/community.git/tree/trunk?h=packages/stardict'>trunk</a>/<a href='/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/stardict'>PKGBUILD</a></div><div class='content'>blob: 7b49247bca9487451d8f9cbb29ef1dbaef355c26 (<a href='/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/stardict'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
<a id='n42' href='#n42'>42</a>
<a id='n43' href='#n43'>43</a>
<a id='n44' href='#n44'>44</a>
<a id='n45' href='#n45'>45</a>
<a id='n46' href='#n46'>46</a>
<a id='n47' href='#n47'>47</a>
<a id='n48' href='#n48'>48</a>
<a id='n49' href='#n49'>49</a>
<a id='n50' href='#n50'>50</a>
<a id='n51' href='#n51'>51</a>
<a id='n52' href='#n52'>52</a>
<a id='n53' href='#n53'>53</a>
<a id='n54' href='#n54'>54</a>
<a id='n55' href='#n55'>55</a>
<a id='n56' href='#n56'>56</a>
<a id='n57' href='#n57'>57</a>
<a id='n58' href='#n58'>58</a>
<a id='n59' href='#n59'>59</a>
<a id='n60' href='#n60'>60</a>
</pre></td>
<td class='lines'><pre><code><span class="hl slc"># Maintainer: Felix Yan &lt;felixonmars&#64;archlinux.org&gt;</span>
<span class="hl slc"># Contributor: Gaetan Bisson &lt;bisson&#64;archlinux.org&gt;</span>
<span class="hl slc"># Contributor: Aaron Griffin &lt;aaron&#64;archlinux.org&gt;</span>
<span class="hl slc"># Contributor: Neil Lin &lt;neil&#64;vip.url.com.tw&gt;</span>
<span class="hl slc"># Contributor: Cravix &lt; dr dot neemous at gmail dot com &gt;</span>

pkgname<span class="hl opt">=</span>stardict
pkgver<span class="hl opt">=</span><span class="hl num">3.0.6</span>
pkgrel<span class="hl opt">=</span><span class="hl num">7</span>
pkgdesc<span class="hl opt">=</span><span class="hl str">&#39;International dictionary software&#39;</span>
arch<span class="hl opt">=(</span><span class="hl str">&#39;x86_64&#39;</span><span class="hl opt">)</span>
url<span class="hl opt">=</span><span class="hl str">&#39;http://stardict-4.sourceforge.net/&#39;</span>
license<span class="hl opt">=(</span><span class="hl str">&#39;GPL&#39;</span><span class="hl opt">)</span>
depends<span class="hl opt">=(</span><span class="hl str">&#39;gtk2&#39;</span> <span class="hl str">&#39;libsigc++&#39;</span><span class="hl opt">)</span>
makedepends<span class="hl opt">=(</span><span class="hl str">&#39;enchant&#39;</span> <span class="hl str">&#39;espeak&#39;</span> <span class="hl str">&#39;mariadb-libs&#39;</span> <span class="hl str">&#39;gnome-common&#39;</span> <span class="hl str">&#39;gnome-doc-utils&#39;</span><span class="hl opt">)</span>
optdepends<span class="hl opt">=(</span><span class="hl str">&#39;enchant: spell checker plugin&#39;</span>
            <span class="hl str">&#39;espeak: text to speech plugin&#39;</span><span class="hl opt">)</span>
options<span class="hl opt">=(</span><span class="hl str">&#39;!emptydirs&#39;</span><span class="hl opt">)</span>
<span class="hl kwb">source</span><span class="hl opt">=(</span><span class="hl str">&quot;https://downloads.sourceforge.net/project/stardict-4/</span><span class="hl ipl">$pkgver</span><span class="hl str">/</span><span class="hl ipl">$pkgname</span><span class="hl str">-</span><span class="hl ipl">$pkgver</span><span class="hl str">.tar.bz2&quot;</span>
        <span class="hl str">&#39;gcc46.patch&#39;</span>
        <span class="hl str">&#39;glib2.patch&#39;</span>
        <span class="hl str">&#39;mariadb.patch&#39;</span><span class="hl opt">)</span>
sha256sums<span class="hl opt">=(</span><span class="hl str">&#39;6a0a695a8977604e0509a3db1bc6a67e53599b14f29494ba942f21d2c26b82e7&#39;</span>
            <span class="hl str">&#39;207dc727b69ee8552372d5551f54a638b472703aeb13a64cdfee6bad00dc380d&#39;</span>
            <span class="hl str">&#39;5be4d0468f6089b760924a5d25030110ca62869b4611afb46a411cd4eb59b832&#39;</span>
            <span class="hl str">&#39;f66b916c358bddf48fcb91a7d0190a7109fe92a1388ec982c47dfa9ac1ee69cf&#39;</span><span class="hl opt">)</span>

prepare<span class="hl opt">() {</span>
  <span class="hl kwb">cd</span> <span class="hl str">&quot;</span><span class="hl ipl">${srcdir}</span><span class="hl str">/</span><span class="hl ipl">${pkgname}</span><span class="hl str">-</span><span class="hl ipl">${pkgver}</span><span class="hl str">&quot;</span>

  <span class="hl kwc">patch</span> <span class="hl kwb">-p1 -i</span> ..<span class="hl opt">/</span>gcc46.<span class="hl kwc">patch</span>
  <span class="hl kwc">patch</span> <span class="hl kwb">-p1 -i</span> ..<span class="hl opt">/</span>glib2.<span class="hl kwc">patch</span>
  <span class="hl kwc">patch</span> <span class="hl kwb">-p1 -i</span> ..<span class="hl opt">/</span>mariadb.<span class="hl kwc">patch</span>

  <span class="hl kwc">sed</span> <span class="hl kwb">-i</span> <span class="hl str">&#39;s/, enchant/, enchant-2/&#39;</span> dict<span class="hl opt">/</span>configure.ac
  <span class="hl kwc">sed</span> <span class="hl kwb">-i</span> <span class="hl str">&#39;/AM_GCONF_SOURCE_2/d&#39;</span> dict<span class="hl opt">/</span>configure.ac

  .<span class="hl opt">/</span>autogen.sh
<span class="hl opt">}</span>

build<span class="hl opt">() {</span>
  <span class="hl kwb">cd</span> <span class="hl str">&quot;</span><span class="hl ipl">${srcdir}</span><span class="hl str">/</span><span class="hl ipl">${pkgname}</span><span class="hl str">-</span><span class="hl ipl">${pkgver}</span><span class="hl str">&quot;</span>

  CXXFLAGS<span class="hl opt">+=</span><span class="hl str">&quot; -std=gnu++11&quot;</span>
  .<span class="hl opt">/</span>configure \
    <span class="hl kwb">--prefix</span><span class="hl opt">=/</span>usr \
    <span class="hl kwb">--sysconfdir</span><span class="hl opt">=/</span>etc \
    <span class="hl kwb">--mandir</span><span class="hl opt">=/</span>usr<span class="hl opt">/</span><span class="hl kwc">shar</span>e<span class="hl opt">/</span>man \
    <span class="hl kwb">--disable-gnome-support</span> \
    <span class="hl kwb">--disable-gucharmap</span> \
    <span class="hl kwb">--disable-festival</span> \
    <span class="hl kwb">--disable-updateinfo</span>
  <span class="hl kwc">sed</span> <span class="hl kwb">-e</span> <span class="hl str">&#39;s/ -shared / -Wl,-O1,--as-needed\0/g&#39;</span> <span class="hl kwb">-i</span> <span class="hl opt">{</span>dict<span class="hl opt">,</span>lib<span class="hl opt">,</span>tools<span class="hl opt">}/</span>libtool
  <span class="hl kwc">make</span>
<span class="hl opt">}</span>

package<span class="hl opt">() {</span>
  <span class="hl kwb">cd</span> <span class="hl str">&quot;</span><span class="hl ipl">${srcdir}</span><span class="hl str">/</span><span class="hl ipl">${pkgname}</span><span class="hl str">-</span><span class="hl ipl">${pkgver}</span><span class="hl str">&quot;</span>
  <span class="hl kwc">make</span> DESTDIR<span class="hl opt">=</span><span class="hl str">&quot;</span><span class="hl ipl">${pkgdir}</span><span class="hl str">&quot;</span> <span class="hl kwc">install</span>
<span class="hl opt">}</span>
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class="foot" style="padding-left:1em;padding-right:1em;">
<p>Copyright &copy; 2002-2018 <a href="mailto:jvinet@zeroflux.org"
title="contact Judd Vinet">Judd Vinet</a> and <a href="mailto:aaron@archlinux.org"
title="contact Aaron Griffin">Aaron Griffin</a>. The Arch Linux name and logo
are recognized trademarks. Some rights reserved. The registered trademark
Linux&reg; is used pursuant to a sublicense from LMI, the exclusive licensee
of Linus Torvalds, owner of the mark on a world-wide basis.</p>
</div>
</div> <!-- id=cgit -->
</body>
</html>
