spacepaste

  1.  
  2. # Maintainer: Timofonic timofonic at gmail.com
  3. # Contributor: Boohbah <boohbah at gmail.com>
  4. # Contributor: Tobias Powalowski <tpowa@archlinux.org>
  5. # Contributor: Thomas Baechler <thomas@archlinux.org>
  6. # Contributor: Jonathan Chan <jyc@fastmail.fm>
  7. # Contributor: misc <tastky@gmail.com>
  8. # Contributor: NextHendrix <cjones12 at sheffield.ac.uk>
  9. ### BUILD OPTIONS
  10. # Set these variables to ANYTHING that is not null to enable them
  11. # Use specific config file
  12. _makefileconfig=
  13. # Location of the custom kernel config file
  14. _fileconfig=
  15. # Tweak kernel options prior to a build via nconfig
  16. _makenconfig=
  17. # Tweak kernel options prior to a build via xconfig
  18. _makexconfig=
  19. # Tweak kernel options prior to a build via gconfig
  20. _makegconfig=
  21. # NUMA is optimized for multi-socket motherboards. A single multi-core CPU can
  22. # actually run slower with NUMA enabled. Most users will want to set this option
  23. # to enabled ... in other words, do not use NUMA on a single CPU system.
  24. #
  25. # See, https://bugs.archlinux.org/task/31187
  26. _NUMAdisable=y
  27. # Compile ONLY probed modules
  28. # As of mainline 2.6.32, running with this option will only build the modules
  29. # that you currently have probed in your system VASTLY reducing the number of
  30. # modules built and the build time to do it.
  31. #
  32. # WARNING - ALL modules must be probed BEFORE you begin making the pkg!
  33. #
  34. # To keep track of which modules are needed for your specific system/hardware,
  35. # give module_db script a try: https://aur.archlinux.org/packages/modprobed-db
  36. # This PKGBUILD will call it directly to probe all the modules you have logged!
  37. #
  38. # More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db
  39. _localmodcfg=
  40. # Use the current kernel's .config file
  41. # Enabling this option will use the .config of the RUNNING kernel rather than
  42. # the ARCH defaults. Useful when the package gets updated and you already went
  43. # through the trouble of customizing your config options. NOT recommended when
  44. # a new kernel is released, but again, convenient for package bumps.
  45. _use_current=
  46. pkgbase=linux-drm-tip-git
  47. pkgname=('linux-drm-tip-git' 'linux-drm-tip-headers-git')
  48. pkgver=r662284.035f22af3e97
  49. # Alternative idea. Is this OK?
  50. #pkgver="$(
  51. #{ cd "${_gitname}"
  52. # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"}
  53. #)"
  54. # Or...
  55. #pkgver= {
  56. # cd "${_gitname}"
  57. # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  58. #}
  59. pkgrel=1
  60. arch=('i686' 'x86_64')
  61. url="http://www.kernel.org/"
  62. license=('GPL2')
  63. # Is it ok to remove these packages? Is it ok to not provide docs?
  64. makedepends=( 'kmod' 'inetutils' 'bc' 'git' 'libelf') # Removed: 'xmlto' 'docbook-xsl'
  65. options=('!strip')
  66. _gcc_patch='enable_additional_cpu_optimizations_for_gcc_v4.9+_kernel_v3.15+.patch'
  67. source=('git+https://anongit.freedesktop.org/git/drm-tip.git'
  68. # Patches. Not needed as they are used to download a vanilla version and apply
  69. # patches instead downloading newer tarballs. Here we use Git
  70. #"https://www.kernel.org/pub/linux/kernel/v4.x/patch-${kernelver}.xz"
  71. #"https://www.kernel.org/pub/linux/kernel/v4.x/patch-${kernelver}.sign"
  72. # the main kernel config files
  73. 'config.i686' 'config.x86_64'
  74. # pacman hook for initramfs regeneration
  75. '90-linux.hook'
  76. # standard config files for mkinitcpio ramdisk
  77. "${pkgbase}.preset")
  78. sha256sums=('SKIP'
  79. 'df55887a43dcbb6bd35fd2fb1ec841427b6ea827334c0880cbc256d4f042a7a1'
  80. 'bf84528c592d1841bba0662242f0339a24a1de384c31f28248631e8be9446586'
  81. '834bd254b56ab71d73f59b3221f056c72f559553c04718e350ab2a3e2991afe0'
  82. 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')
  83. _gitname=drm-tip
  84. _kernelname=${pkgbase#linux}
  85. # no tags in drm-tip
  86. #pkgver() {
  87. # cd "${_gitname}"
  88. #
  89. # git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
  90. #}
  91. pkgver() {
  92. cd "${_gitname}"
  93. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  94. }
  95. #What about using this instead?
  96. # pkgver() {
  97. # cd "$srcdir/$_gitname"
  98. # git describe --always | sed -r 's/^v//;s/-/./g;'
  99. #}
  100. prepare() {
  101. cd "$srcdir/$_gitname"
  102. # add upstream patch
  103. # Not required as we use Git
  104. # patch -p1 -i "${srcdir}/patch-${_kernelver}"
  105. # security patches
  106. # add latest fixes from stable queue, if needed
  107. # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
  108. # Patch source to unlock additional gcc CPU optimizatons
  109. # https://github.com/graysky2/kernel_gcc_patch
  110. patch -Np1 -i "$srcdir/$_gitname/$_gcc_patch"
  111. # Is this okay?
  112. cat "$srcdir/$_gitname/config.${CARCH}" > ./.config #look -> Does this cause issues about custom config?
  113. # set localversion to git commit
  114. if [ "${_kernelname}" != "" ]; then
  115. sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${pkgver##*.}\"|g" ./.config
  116. sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
  117. fi
  118. ### Optionally disable NUMA for 64-bit kernels only
  119. # (x86 kernels do not support NUMA)
  120. if [ -n "$_NUMAdisable" ]; then
  121. if [ "${CARCH}" = "x86_64" ]; then
  122. msg "Disabling NUMA from kernel config..."
  123. sed -i -e 's/CONFIG_NUMA=y/# CONFIG_NUMA is not set/' \
  124. -i -e '/CONFIG_AMD_NUMA=y/d' \
  125. -i -e '/CONFIG_X86_64_ACPI_NUMA=y/d' \
  126. -i -e '/CONFIG_NODES_SPAN_OTHER_NODES=y/d' \
  127. -i -e '/# CONFIG_NUMA_EMU is not set/d' \
  128. -i -e '/CONFIG_NODES_SHIFT=6/d' \
  129. -i -e '/CONFIG_NEED_MULTIPLE_NODES=y/d' \
  130. -i -e '/# CONFIG_MOVABLE_NODE is not set/d' \
  131. -i -e '/CONFIG_USE_PERCPU_NUMA_NODE_ID=y/d' \
  132. -i -e '/CONFIG_ACPI_NUMA=y/d' ./.config
  133. fi
  134. fi
  135. ### Optionally use running kernel's config
  136. # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
  137. if [ -n "$_use_current" ]; then
  138. if [[ -s /proc/config.gz ]]; then
  139. msg "Extracting config from /proc/config.gz..."
  140. # modprobe configs
  141. zcat /proc/config.gz > ./.config
  142. else
  143. warning "Your kernel was not compiled with IKCONFIG_PROC!"
  144. warning "You cannot read the current config!"
  145. warning "Aborting!"
  146. exit
  147. fi
  148. fi
  149. ### Optionally use a custom kernel's config file
  150. # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
  151. if [ -n "$_makefileconfig" ]; then #look
  152. if [[ $_fileconfig ]]; then #look
  153. msg "Reading and copying config from $_fileconfig"
  154. # modprobe configs
  155. cat $_fileconfig > ./.config #look
  156. else
  157. warning "The $_fileconfig kernel custom config file is not available!"
  158. warning "Please make sure you have the kernel custom config file in the specified location!"
  159. warning "Aborting!"
  160. exit
  161. fi
  162. fi
  163. #Old old old
  164. # if [ "${CARCH}" = "x86_64" ]; then
  165. # cat "${srcdir}/config.x86_64" > ./.config
  166. # else
  167. # cat "${srcdir}/config" > ./.config
  168. # fi
  169. # set extraversion to pkgrel
  170. sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
  171. # don't run depmod on 'make install'. We'll do this ourselves in packaging
  172. sed -i '2iexit 0' scripts/depmod.sh
  173. # get kernel version
  174. make prepare
  175. ### Optionally load needed modules for the make localmodconfig
  176. # See https://aur.archlinux.org/packages/modprobed-db
  177. if [ -n "$_localmodcfg" ]; then
  178. msg "If you have modprobed-db installed, running it in recall mode now"
  179. if [ -e /usr/bin/modprobed-db ]; then
  180. [[ -x /usr/bin/sudo ]] || {
  181. echo "Cannot call modprobe with sudo. Install sudo and configure it to work with this user."
  182. exit 1; }
  183. sudo /usr/bin/modprobed-db recall
  184. fi
  185. msg "Running Steven Rostedt's make localmodconfig now"
  186. make localmodconfig
  187. fi
  188. [[ -z "$_makenconfig" ]] || make nconfig
  189. # How to add $_makexconfig ?
  190. # [[ -z "$_makexconfig" ]] || make xconfig #look
  191. # How to add $_makegconfig ?
  192. # [[ -z "$_makegconfig" ]] || make gconfig #look
  193. # rewrite configuration
  194. yes "" | make config >/dev/null #look
  195. # save configuration for later reuse
  196. cat .config > "${startdir}/config.${CARCH}.last" #look
  197. }
  198. }
  199. build() {
  200. cd "$srcdir/$_gitname"
  201. make ${MAKEFLAGS} LOCALVERSION= bzImage modules
  202. }
  203. package_linux-drm-tip-git() {
  204. pkgdesc="The Linux kernel and modules with Intel DRM current development and nightly trees (git version). May be useful to check Intel graphics driver
  205. bugs/issues
  206. against stable version or being more bleeding edge"
  207. depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
  208. optdepends=('crda: to set the correct wireless channels of your country')
  209. provides=('linux')
  210. backup=("etc/mkinitcpio.d/$pkgbase.preset")
  211. install=linux.install
  212. cd "$srcdir/$_gitname"
  213. KARCH=x86
  214. # get kernel version
  215. _kernver="$(make LOCALVERSION= kernelrelease)"
  216. _basekernel=${_kernver%%-*}
  217. _basekernel=${_basekernel%.*}
  218. mkdir -p "$pkgdir"/{lib/modules,lib/firmware,boot}
  219. make LOCALVERSION= INSTALL_MOD_PATH="$pkgdir" modules_install
  220. cp arch/$KARCH/boot/bzImage "$pkgdir/boot/vmlinuz-${pkgbase}"
  221. # set correct depmod command for install
  222. # Use this new stuff from upstream or the older one?
  223. sed -e "s|%PKGBASE%|${pkgbase}|g;s|%KERNVER%|${_kernver}|g" \
  224. "${startdir}/${install}" > "${startdir}/${install}.pkg"
  225. true && install=${install}.pkg
  226. # Older stuff
  227. # cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
  228. # true && install=${install}.pkg
  229. # sed \
  230. # -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/" \
  231. # -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" \
  232. # -i "${startdir}/${install}"
  233. # install mkinitcpio preset file for kernel
  234. sed "s|%PKGBASE%|${pkgbase}|g" "$srcdir/$pkgbase.preset" |
  235. install -D -m644 /dev/stdin "$pkgdir/etc/mkinitcpio.d/$pkgbase.preset"
  236. # Older code. I put here because of idk and as reference.
  237. # install -D -m644 "${srcdir}/${pkgbase}.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
  238. # sed \
  239. # -e "1s|'linux.*'|'${pkgbase}'|" \
  240. # -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgbase}\"|" \
  241. # -e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgbase}.img\"|" \
  242. # -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgbase}-fallback.img\"|" \
  243. # -i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
  244. # install pacman hook for initramfs regeneration
  245. sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/90-linux.hook" |
  246. install -D -m644 /dev/stdin "$pkgdir/usr/share/libalpm/hooks/90-$pkgbase.hook"
  247. # remove build and source links
  248. rm -f "$pkgdir"/lib/modules/${_kernver}/{source,build}
  249. # remove the firmware
  250. rm -rf "$pkgdir/lib/firmware"
  251. # make room for external modules
  252. ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
  253. # add real version for building modules and running depmod from post_install/upgrade
  254. mkdir -p "$pkgdir/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}" #look
  255. echo "${_kernver}" > "$pkgdir/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version" #look
  256. # Now we call depmod...
  257. depmod -b "$pkgdir" -F System.map "${_kernver}" #look
  258. # move module tree /lib -> /usr/lib
  259. mkdir -p "$pkgdir/usr"
  260. mv "$pkgdir/lib" "$pkgdir/usr/"
  261. # add vmlinux
  262. install -D -m644 vmlinux "$pkgdir/usr/lib/modules/${_kernver}/build/vmlinux"
  263. # New core linux PKGBUILD lacks this. Remove?
  264. # add System.map
  265. # install -D -m644 System.map "$pkgdir/boot/System.map-${_kernver}"
  266. }
  267. package_linux-drm-tip-headers-git()
  268. pkgdesc="Header files and scripts for building modules for Linux kernel and modules with DRM current development and nightly trees (git version). May be useful to check graphics driver bugs/issues against stable version or being more bleeding edge"
  269. provides=('linux-headers')
  270. install -dm755 "$pkgdir/usr/lib/modules/${_kernver}"
  271. cd "${_gitname}"
  272. install -D -m644 Makefile \
  273. "$pkgdir/usr/lib/modules/${_kernver}/build/Makefile"
  274. install -D -m644 kernel/Makefile \
  275. "$pkgdir/usr/lib/modules/${_kernver}/build/kernel/Makefile"
  276. install -D -m644 .config \
  277. "$pkgdir/usr/lib/modules/${_kernver}/build/.config"
  278. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/include"
  279. for i in acpi asm-generic config crypto drm generated keys linux math-emu \
  280. media net pcmcia rdma scsi soc sound trace uapi video xen; do
  281. cp -a include/${i} "$pkgdir/usr/lib/modules/${_kernver}/build/include/"
  282. done
  283. # copy arch includes for external modules
  284. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/arch/x86"
  285. cp -a arch/x86/include "$pkgdir/usr/lib/modules/${_kernver}/build/arch/x86/"
  286. # copy files necessary for later builds, like nvidia and vmware
  287. cp Module.symvers "$pkgdir/usr/lib/modules/${_kernver}/build"
  288. cp -a scripts "$pkgdir/usr/lib/modules/${_kernver}/build"
  289. # fix permissions on scripts dir
  290. chmod og-w -R "$pkgdir/usr/lib/modules/${_kernver}/build/scripts"
  291. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/.tmp_versions"
  292. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel"
  293. cp arch/${KARCH}/Makefile "$pkgdir/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
  294. if [ "${CARCH}" = "i686" ]; then
  295. cp arch/${KARCH}/Makefile_32.cpu "$pkgdir/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
  296. fi
  297. cp arch/${KARCH}/kernel/asm-offsets.s "$pkgdir/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel/"
  298. # add docbook makefile
  299. # Workaround to make it build
  300. # install -D -m644 Documentation/DocBook/Makefile \
  301. # "$pkgdir/usr/lib/modules/${_kernver}/build/Documentation/DocBook/Makefile"
  302. # add dm headers
  303. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/md"
  304. cp drivers/md/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/md"
  305. # add inotify.h
  306. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/include/linux"
  307. cp include/linux/inotify.h "$pkgdir/usr/lib/modules/${_kernver}/build/include/linux/"
  308. # add wireless headers
  309. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/net/mac80211/"
  310. cp net/mac80211/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/net/mac80211/"
  311. # add dvb headers for external modules
  312. # in reference to:
  313. # http://bugs.archlinux.org/task/9912
  314. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/dvb-core"
  315. cp drivers/media/dvb-core/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/dvb-core/"
  316. # and...
  317. # http://bugs.archlinux.org/task/11194
  318. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/include/config/dvb/"
  319. cp include/config/dvb/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/include/config/dvb/"
  320. # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
  321. # in reference to:
  322. # http://bugs.archlinux.org/task/13146
  323. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
  324. cp drivers/media/dvb-frontends/lgdt330x.h "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
  325. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/i2c/"
  326. cp drivers/media/i2c/msp3400-driver.h "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/i2c/"
  327. # add dvb headers
  328. # in reference to:
  329. # http://bugs.archlinux.org/task/20402
  330. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/usb/dvb-usb"
  331. cp drivers/media/usb/dvb-usb/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/usb/dvb-usb/"
  332. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends"
  333. cp drivers/media/dvb-frontends/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
  334. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/tuners"
  335. cp drivers/media/tuners/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/drivers/media/tuners/"
  336. # add xfs and shmem for aufs building
  337. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/fs/xfs"
  338. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/mm"
  339. # removed in 3.17 series
  340. # cp fs/xfs/xfs_sb.h "$pkgdir/usr/lib/modules/${_kernver}/build/fs/xfs/xfs_sb.h"
  341. # copy in Kconfig files
  342. for i in $(find . -name "Kconfig*"); do
  343. mkdir -p "$pkgdir"/usr/lib/modules/${_kernver}/build/`echo ${i} | sed 's|/Kconfig.*||'` #look
  344. cp ${i} "$pkgdir/usr/lib/modules/${_kernver}/build/${i}"
  345. done
  346. # Fix file conflict with -doc package
  347. rm "$pkgdir/usr/lib/modules/${_kernver}/build/Documentation/kbuild"/Kconfig.*-*
  348. # add objtool for external module building and enabled VALIDATION_STACK option
  349. if [ -f tools/objtool/objtool ]; then
  350. mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/tools/objtool"
  351. cp -a tools/objtool/objtool $pkgdir/usr/lib/modules/${_kernver}/build/tools/objtool
  352. fi
  353. chown -R root.root "$pkgdir/usr/lib/modules/${_kernver}/build"
  354. find "$pkgdir/usr/lib/modules/${_kernver}/build" -type d -exec chmod 755 {} \;
  355. # strip scripts directory
  356. find "$pkgdir/usr/lib/modules/${_kernver}/build/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
  357. case "$(file -bi "${binary}")" in
  358. *application/x-sharedlib*) # Libraries (.so)
  359. /usr/bin/strip ${STRIP_SHARED} "${binary}";;
  360. *application/x-archive*) # Libraries (.a)
  361. /usr/bin/strip ${STRIP_STATIC} "${binary}";;
  362. *application/x-executable*) # Binaries
  363. /usr/bin/strip ${STRIP_BINARIES} "${binary}";;
  364. esac
  365. done
  366. # remove unneeded architectures
  367. rm -rf "$pkgdir"/usr/lib/modules/${_kernver}/build/arch/{alpha,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa}
  368. }
  369. #Massive dirty workaround to avoid all possible errors
  370. #_package-docs() {
  371. # pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel (git version)"
  372. # provides=('linux-docs')
  373. # cd "${_gitname}"
  374. # mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build"
  375. # Workaround to make it build
  376. # cp -al Documentation "${pkgdir}/usr/lib/modules/${_kernver}/build"
  377. # find "$pkgdir" -type f -exec chmod 444 {} \;
  378. # find "$pkgdir" -type d -exec chmod 755 {} \;
  379. # remove a file already in linux package
  380. # Workaround to make it build
  381. # rm -f "$pkgdir/usr/lib/modules/${_kernver}/build/Documentation/DocBook/Makefile"
  382. # Remove files already in linux-docs package
  383. # rm -f "$pkgdir/usr/lib/modules/${_kernver}/build/Documentation/kbuild/Kconfig.recursion
  384. # rm -f "$pkgdir/usr/lib/modules/${_kernver}/build/Documentation/kbuild/Kconfig.recursion
  385. # rm -f "$pkgdir/usr/lib/modules/${_kernver}/build/Documentation/kbuild/Kconfig.select-br
  386. #}
  387. #pkgname=("${pkgbase}" "${pkgbase}-headers") # "${pkgbase}-docs") # Workaround to make it build
  388. #for _p in ${pkgname[@]}; do
  389. # eval "package_${_p}() {
  390. # $(declare -f "_package${_p#${pkgbase}}")
  391. # _package${_p#${pkgbase}}
  392. # }"
  393. #done
  394. # vim:set ts=8 sts=2 sw=2 et:
  395. # nano rulez
  396.