EMBASSY.SlackBuild 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. #!/bin/bash
  2. # Slackware build script for EMBASSY
  3. # Copyright 2011-2022 Petar Petrov slackalaxy@gmail.com
  4. # All rights reserved.
  5. #
  6. # Redistribution and use of this script, with or without modification, is
  7. # permitted provided that the following conditions are met:
  8. #
  9. # 1. Redistributions of this script must retain the above copyright
  10. # notice, this list of conditions and the following disclaimer.
  11. #
  12. # THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  13. # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
  15. # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  17. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  18. # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  19. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  20. # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  21. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
  22. cd $(dirname $0) ; CWD=$(pwd)
  23. PRGNAM=EMBASSY
  24. VERSION=${VERSION:-6.6.0} # Keep this the same version as EMBOSS
  25. BUILD=${BUILD:-4}
  26. TAG=${TAG:-_SBo}
  27. PKGTYPE=${PKGTYPE:-tgz}
  28. if [ -z "$ARCH" ]; then
  29. case "$( uname -m )" in
  30. i?86) ARCH=i586 ;;
  31. arm*) ARCH=arm ;;
  32. *) ARCH=$( uname -m ) ;;
  33. esac
  34. fi
  35. # If the variable PRINT_PACKAGE_NAME is set, then this script will report what
  36. # the name of the created package would be, and then exit. This information
  37. # could be useful to other scripts.
  38. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
  39. echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
  40. exit 0
  41. fi
  42. TMP=${TMP:-/tmp/SBo}
  43. PKG=$TMP/package-$PRGNAM
  44. OUTPUT=${OUTPUT:-/tmp}
  45. if [ "$ARCH" = "i586" ]; then
  46. SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  47. LIBDIRSUFFIX=""
  48. elif [ "$ARCH" = "i686" ]; then
  49. SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  50. LIBDIRSUFFIX=""
  51. elif [ "$ARCH" = "x86_64" ]; then
  52. SLKCFLAGS="-O2 -fPIC"
  53. LIBDIRSUFFIX="64"
  54. else
  55. SLKCFLAGS="-O2"
  56. LIBDIRSUFFIX=""
  57. fi
  58. # where to look for libraries
  59. LIBDIRPATH="-Wl,-rpath,/usr/lib${LIBDIRSUFFIX}/EMBOSS"
  60. # EMBASSY components and their versions
  61. CBSTOOLS=CBSTOOLS-1.0.0.650
  62. CLUSTALOMEGA=CLUSTALOMEGA-1.1.0
  63. DOMAINATRIX=DOMAINATRIX-0.1.650
  64. DOMALIGN=DOMALIGN-0.1.650
  65. DOMSEARCH=DOMSEARCH-0.1.650
  66. EMNU=EMNU-1.05.650
  67. ESIM4=ESIM4-1.0.0.650
  68. HMMER=HMMER-2.3.2.650
  69. IPRSCAN=IPRSCAN-4.3.1.650
  70. MEME=MEME-4.7.650
  71. MSE=MSE-3.0.0.650
  72. MYEMBOSS=MYEMBOSS-6.5.1
  73. MYEMBOSSDEMO=MYEMBOSSDEMO-6.5.0
  74. PHYLIPNEW=PHYLIPNEW-3.69.650
  75. SIGNATURE=SIGNATURE-0.1.650
  76. STRUCTURE=STRUCTURE-0.1.650
  77. TOPO=TOPO-2.0.650
  78. VIENNA=VIENNA-1.7.2.650
  79. set -e
  80. rm -rf $PKG
  81. mkdir -p $TMP $PKG $OUTPUT
  82. cd $TMP
  83. rm -rf $PRGNAM-$VERSION
  84. mkdir $TMP/$PRGNAM-$VERSION
  85. cd $TMP/$PRGNAM-$VERSION
  86. # Extract the components
  87. tar xvf $CWD/$CBSTOOLS.tar.gz
  88. tar xvf $CWD/$CLUSTALOMEGA.tar.gz
  89. tar xvf $CWD/$DOMAINATRIX.tar.gz
  90. tar xvf $CWD/$DOMALIGN.tar.gz
  91. tar xvf $CWD/$DOMSEARCH.tar.gz
  92. tar xvf $CWD/$EMNU.tar.gz
  93. tar xvf $CWD/$ESIM4.tar.gz
  94. tar xvf $CWD/$HMMER.tar.gz
  95. tar xvf $CWD/$IPRSCAN.tar.gz
  96. tar xvf $CWD/$MEME.tar.gz
  97. tar xvf $CWD/$MSE.tar.gz
  98. tar xvf $CWD/$MYEMBOSS.tar.gz
  99. tar xvf $CWD/$MYEMBOSSDEMO.tar.gz
  100. tar xvf $CWD/$PHYLIPNEW.tar.gz
  101. tar xvf $CWD/$SIGNATURE.tar.gz
  102. tar xvf $CWD/$STRUCTURE.tar.gz
  103. tar xvf $CWD/$TOPO.tar.gz
  104. tar xvf $CWD/$VIENNA.tar.gz
  105. chown -R root:root .
  106. find -L . \
  107. \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  108. -o -perm 511 \) -exec chmod 755 {} \; -o \
  109. \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  110. -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
  111. # Build CBSTOOLS
  112. cd $TMP/$PRGNAM-$VERSION/$CBSTOOLS
  113. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  114. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  115. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  116. ./configure \
  117. --prefix=/usr \
  118. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  119. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  120. --sysconfdir=/etc \
  121. --localstatedir=/var \
  122. --mandir=/usr/man \
  123. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  124. --build=$ARCH-slackware-linux
  125. make
  126. make install DESTDIR=$PKG
  127. # Build CLUSTALOMEGA
  128. cd $TMP/$PRGNAM-$VERSION/$CLUSTALOMEGA
  129. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  130. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  131. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  132. ./configure \
  133. --prefix=/usr \
  134. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  135. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  136. --sysconfdir=/etc \
  137. --localstatedir=/var \
  138. --mandir=/usr/man \
  139. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  140. --build=$ARCH-slackware-linux
  141. make
  142. make install DESTDIR=$PKG
  143. # Build DOMAINATRIX
  144. cd $TMP/$PRGNAM-$VERSION/$DOMAINATRIX
  145. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  146. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  147. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  148. ./configure \
  149. --prefix=/usr \
  150. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  151. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  152. --sysconfdir=/etc \
  153. --localstatedir=/var \
  154. --mandir=/usr/man \
  155. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  156. --build=$ARCH-slackware-linux
  157. make
  158. make install DESTDIR=$PKG
  159. # Build DOMALIGN
  160. cd $TMP/$PRGNAM-$VERSION/$DOMALIGN
  161. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  162. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  163. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  164. ./configure \
  165. --prefix=/usr \
  166. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  167. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  168. --sysconfdir=/etc \
  169. --localstatedir=/var \
  170. --mandir=/usr/man \
  171. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  172. --build=$ARCH-slackware-linux
  173. make
  174. make install DESTDIR=$PKG
  175. # Build DOMSEARCH
  176. cd $TMP/$PRGNAM-$VERSION/$DOMSEARCH
  177. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  178. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  179. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  180. ./configure \
  181. --prefix=/usr \
  182. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  183. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  184. --sysconfdir=/etc \
  185. --localstatedir=/var \
  186. --mandir=/usr/man \
  187. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  188. --build=$ARCH-slackware-linux
  189. make
  190. make install DESTDIR=$PKG
  191. # Build EMNU
  192. cd $TMP/$PRGNAM-$VERSION/$EMNU
  193. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  194. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  195. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  196. ./configure \
  197. --prefix=/usr \
  198. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  199. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  200. --sysconfdir=/etc \
  201. --localstatedir=/var \
  202. --mandir=/usr/man \
  203. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  204. --build=$ARCH-slackware-linux
  205. make
  206. make install DESTDIR=$PKG
  207. # Build ESIM4
  208. cd $TMP/$PRGNAM-$VERSION/$ESIM4
  209. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  210. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  211. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  212. ./configure \
  213. --prefix=/usr \
  214. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  215. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  216. --sysconfdir=/etc \
  217. --localstatedir=/var \
  218. --mandir=/usr/man \
  219. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  220. --build=$ARCH-slackware-linux
  221. make
  222. make install DESTDIR=$PKG
  223. # Build HMMER
  224. cd $TMP/$PRGNAM-$VERSION/$HMMER
  225. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  226. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  227. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  228. ./configure \
  229. --prefix=/usr \
  230. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  231. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  232. --sysconfdir=/etc \
  233. --localstatedir=/var \
  234. --mandir=/usr/man \
  235. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  236. --build=$ARCH-slackware-linux
  237. make
  238. make install DESTDIR=$PKG
  239. # Build IPRSCAN
  240. cd $TMP/$PRGNAM-$VERSION/$IPRSCAN
  241. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  242. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  243. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  244. ./configure \
  245. --prefix=/usr \
  246. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  247. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  248. --sysconfdir=/etc \
  249. --localstatedir=/var \
  250. --mandir=/usr/man \
  251. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  252. --build=$ARCH-slackware-linux
  253. make
  254. make install DESTDIR=$PKG
  255. # Build MEME
  256. cd $TMP/$PRGNAM-$VERSION/$MEME
  257. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  258. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  259. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  260. ./configure \
  261. --prefix=/usr \
  262. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  263. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  264. --sysconfdir=/etc \
  265. --localstatedir=/var \
  266. --mandir=/usr/man \
  267. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  268. --build=$ARCH-slackware-linux
  269. make
  270. make install DESTDIR=$PKG
  271. # Build MSE
  272. cd $TMP/$PRGNAM-$VERSION/$MSE
  273. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  274. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  275. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  276. ./configure \
  277. --prefix=/usr \
  278. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  279. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  280. --sysconfdir=/etc \
  281. --localstatedir=/var \
  282. --mandir=/usr/man \
  283. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  284. --build=$ARCH-slackware-linux
  285. make
  286. make install DESTDIR=$PKG
  287. # Build MYEMBOSS
  288. cd $TMP/$PRGNAM-$VERSION/$MYEMBOSS
  289. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  290. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  291. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  292. ./configure \
  293. --prefix=/usr \
  294. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  295. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  296. --sysconfdir=/etc \
  297. --localstatedir=/var \
  298. --mandir=/usr/man \
  299. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  300. --build=$ARCH-slackware-linuxx
  301. make
  302. make install DESTDIR=$PKG
  303. # Build MYEMBOSSDEMO
  304. cd $TMP/$PRGNAM-$VERSION/$MYEMBOSSDEMO
  305. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  306. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  307. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  308. ./configure \
  309. --prefix=/usr \
  310. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  311. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  312. --sysconfdir=/etc \
  313. --localstatedir=/var \
  314. --mandir=/usr/man \
  315. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  316. --build=$ARCH-slackware-linux
  317. make
  318. make install DESTDIR=$PKG
  319. # Build PHYLIPNEW
  320. cd $TMP/$PRGNAM-$VERSION/$PHYLIPNEW
  321. CFLAGS="$SLKCFLAGS -fcommon $LIBDIRPATH" \
  322. CXXFLAGS="$SLKCFLAGS -fcommon $LIBDIRPATH" \
  323. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  324. ./configure \
  325. --prefix=/usr \
  326. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  327. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  328. --sysconfdir=/etc \
  329. --localstatedir=/var \
  330. --mandir=/usr/man \
  331. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  332. --build=$ARCH-slackware-linux
  333. make
  334. make install DESTDIR=$PKG
  335. # Build SIGNATURE
  336. cd $TMP/$PRGNAM-$VERSION/$SIGNATURE
  337. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  338. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  339. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  340. ./configure \
  341. --prefix=/usr \
  342. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  343. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  344. --sysconfdir=/etc \
  345. --localstatedir=/var \
  346. --mandir=/usr/man \
  347. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  348. --build=$ARCH-slackware-linux
  349. make
  350. make install DESTDIR=$PKG
  351. # Build STRUCTURE
  352. cd $TMP/$PRGNAM-$VERSION/$STRUCTURE
  353. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  354. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  355. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  356. ./configure \
  357. --prefix=/usr \
  358. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  359. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  360. --sysconfdir=/etc \
  361. --localstatedir=/var \
  362. --mandir=/usr/man \
  363. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  364. --build=$ARCH-slackware-linux
  365. make
  366. make install DESTDIR=$PKG
  367. # Build TOPO
  368. cd $TMP/$PRGNAM-$VERSION/$TOPO
  369. CFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  370. CXXFLAGS="$SLKCFLAGS $LIBDIRPATH" \
  371. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  372. ./configure \
  373. --prefix=/usr \
  374. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  375. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  376. --sysconfdir=/etc \
  377. --localstatedir=/var \
  378. --mandir=/usr/man \
  379. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  380. --build=$ARCH-slackware-linux
  381. make
  382. make install DESTDIR=$PKG
  383. # Build VIENNA
  384. cd $TMP/$PRGNAM-$VERSION/$VIENNA
  385. # -std=gnu89 fixes build with gcc-5.2 (inline functions HairpinE and LoopEnergy)
  386. CFLAGS="$SLKCFLAGS -std=gnu89 $LIBDIRPATH" \
  387. CXXFLAGS="$SLKCFLAGS -std=gnu89 $LIBDIRPATH" \
  388. LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}/EMBOSS" \
  389. ./configure \
  390. --prefix=/usr \
  391. --libdir=/usr/lib${LIBDIRSUFFIX}/EMBOSS \
  392. --bindir=/usr/lib${LIBDIRSUFFIX}/EMBOSS/bin \
  393. --sysconfdir=/etc \
  394. --localstatedir=/var \
  395. --mandir=/usr/man \
  396. --docdir=/usr/doc/$PRGNAM-$VERSION/CBSTOOLS \
  397. --build=$ARCH-slackware-linux
  398. make
  399. make install DESTDIR=$PKG
  400. mv $PKG/usr/share/PHYLIPNEW $PKG/usr/share/EMBOSS
  401. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  402. | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
  403. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
  404. cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
  405. cat $CWD/CONTENTS > $PKG/usr/doc/$PRGNAM-$VERSION/CONTENTS
  406. rm -f $PKG/usr/lib*/*.la
  407. mkdir -p $PKG/install
  408. cat $CWD/slack-desc > $PKG/install/slack-desc
  409. cd $PKG
  410. /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE