Update to AUR 3.0.0

removed unneeded packages
This commit is contained in:
arcan1s 2014-06-05 12:06:58 +04:00
parent 973b09d14d
commit 2034f56525
15 changed files with 3 additions and 699 deletions

View File

@ -1,52 +0,0 @@
# Maintainer: Armin K. <krejzi at email dot com>
pkgname=broadcom-wl_v5
pkgver=5.100.82.112
pkgrel=1
pkgdesc="Broadcom hybrid wireless device driver for Linux"
arch=(i686 x86_64)
url="http://www.broadcom.com/support/802.11/linux_sta.php"
license=('custom')
depends=('linux-headers')
source=("http://ftp.de.debian.org/debian/pool/non-free/b/broadcom-sta/broadcom-sta_${pkgver}.orig.tar.gz"
distro.patch
fixes.patch
modprobe.d)
install=${pkgname}.install
md5sums=('3842465cf117f97445a39cf13d0e3c2f'
'5ea63d8c69e891c8fff56a25a898c3ab'
'246b2a67a5592293104615f5e2bacbb7'
'3600df7db49c759c655bc6a7789b28d4')
if [[ ${CARCH} = "i686" ]]; then
_arch=i386
else
_arch=amd64
fi
_kernmajor="$(pacman -Q linux | awk '{print $2}' | cut -d - -f1 | cut -d . -f1,2)"
_extramodules="extramodules-${_kernmajor}-ARCH"
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
prepare(){
cd "broadcom-sta-${pkgver}/${_arch}"
patch -Np1 -i "${srcdir}/distro.patch"
patch -Np1 -i "${srcdir}/fixes.patch"
}
build() {
cd "broadcom-sta-${pkgver}/${_arch}"
make -C "/usr/lib/modules/${_kernver}/build" M=`pwd`
}
package() {
cd "broadcom-sta-${pkgver}/${_arch}"
install -D -m 644 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
install -D -m 644 "lib/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m 644 "${srcdir}/modprobe.d" "${pkgdir}/etc/modprobe.d/broadcom-wl.conf"
}

View File

@ -1,9 +0,0 @@
post_upgrade() {
cd lib/modules
for i in extramodules-*; do depmod $(cat "$i/version"); done
cd ../..
}
post_install() {
post_upgrade
}

View File

@ -1,46 +0,0 @@
--- a/Makefile 2011-10-22 18:56:55.000000000 +0200
+++ b/Makefile 2013-04-22 16:38:31.388576172 +0200
@@ -120,13 +120,20 @@
EXTRA_CFLAGS += -I$(src)/src/wl/sys -I$(src)/src/wl/phy
#EXTRA_CFLAGS += -DBCMDBG_ASSERT
+ifeq ($(KVER),)
+ KVER = $(shell uname -r)
+endif
+
+KDIR = /lib/modules/$(KVER)/build
+PWD = $(shell pwd)
+
EXTRA_LDFLAGS := $(src)/lib/wlc_hybrid.o_shipped
all:
- KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
+ KBUILD_NOPEDANTIC=1 make -C $(KDIR) M=$(PWD)
clean:
- KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd` clean
+ KBUILD_NOPEDANTIC=1 make -C $(KDIR) M=$(PWD) clean
install:
- install -D -m 755 wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/wl.ko
+ install -D -m 755 wl.ko /lib/modules/$(KVER)/kernel/drivers/net/wireless/wl.ko
--- a/src/wl/sys/wl_linux.c 2011-10-22 18:56:55.000000000 +0200
+++ b/src/wl/sys/wl_linux.c 2013-04-22 16:38:24.891526375 +0200
@@ -185,6 +185,8 @@
static void wl_report_radio_state(wl_info_t *wl);
#endif
+MODULE_LICENSE("MIXED/Proprietary");
+
static struct pci_device_id wl_id_table[] = {
{ PCI_VENDOR_ID_BROADCOM, 0x4311, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
{ PCI_VENDOR_ID_BROADCOM, 0x4312, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
@@ -256,7 +258,7 @@
#define quote_str(s) to_str(s)
#ifndef BRCM_WLAN_IFNAME
-#define BRCM_WLAN_IFNAME eth%d
+#define BRCM_WLAN_IFNAME wlan%d
#endif
static char name[IFNAMSIZ] = quote_str(BRCM_WLAN_IFNAME);

View File

@ -1,400 +0,0 @@
--- a/Makefile 2013-07-04 13:06:00.717790365 +0200
+++ b/Makefile 2013-07-04 13:15:20.607786877 +0200
@@ -16,7 +16,7 @@
ifneq ($(KERNELRELEASE),)
LINUXVER_GOODFOR_CFG80211:=$(strip $(shell \
- if [ "$(VERSION)" -ge "2" -a "$(PATCHLEVEL)" -ge "6" -a "$(SUBLEVEL)" -ge "32" ]; then \
+ if [ "$(VERSION)" -ge "3" -o "$(VERSION)" -ge "2" -a "$(PATCHLEVEL)" -ge "6" -a "$(SUBLEVEL)" -ge "32" ]; then \
echo TRUE; \
else \
echo FALSE; \
@@ -24,7 +24,7 @@
))
LINUXVER_WEXT_ONLY:=$(strip $(shell \
- if [ "$(VERSION)" -ge "2" -a "$(PATCHLEVEL)" -ge "6" -a "$(SUBLEVEL)" -ge "17" ]; then \
+ if [ "$(VERSION)" -ge "3" -o "$(VERSION)" -ge "2" -a "$(PATCHLEVEL)" -ge "6" -a "$(SUBLEVEL)" -ge "17" ]; then \
echo FALSE; \
else \
echo TRUE; \
--- a/src/include/bcmutils.h 2011-10-22 18:55:54.000000000 +0200
+++ b/src/include/bcmutils.h 2013-07-04 13:15:20.607786877 +0200
@@ -555,7 +555,11 @@
extern void prhex(const char *msg, uchar *buf, uint len);
extern bcm_tlv_t *BCMROMFN(bcm_next_tlv)(bcm_tlv_t *elt, int *buflen);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
extern bcm_tlv_t *BCMROMFN(bcm_parse_tlvs)(void *buf, int buflen, uint key);
+#else
+extern bcm_tlv_t *BCMROMFN(bcm_parse_tlvs)(const void *buf, int buflen, uint key);
+#endif
extern bcm_tlv_t *BCMROMFN(bcm_parse_ordered_tlvs)(void *buf, int buflen, uint key);
extern const char *bcmerrorstr(int bcmerror);
--- a/src/wl/sys/wl_cfg80211.c 2011-10-22 18:55:54.000000000 +0200
+++ b/src/wl/sys/wl_cfg80211.c 2013-07-04 13:15:20.614453543 +0200
@@ -42,8 +42,12 @@
enum nl80211_iftype type, u32 *flags, struct vif_params *params);
static s32 __wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_scan_request *request, struct cfg80211_ssid *this_ssid);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)
+static s32 wl_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request);
+#else
static s32 wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_scan_request *request);
+#endif
static s32 wl_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed);
static s32 wl_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_ibss_params *params);
@@ -56,7 +60,11 @@
struct cfg80211_connect_params *sme);
static s32 wl_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev, u16 reason_code);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
+static int wl_cfg80211_set_tx_power(struct wiphy *wiphy,
+ struct wireless_dev *wdev,
+ enum nl80211_tx_power_setting type, int dbm);
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
static s32 wl_cfg80211_set_tx_power(struct wiphy *wiphy,
enum nl80211_tx_power_setting type, s32 dbm);
#else
@@ -64,7 +72,12 @@
enum tx_power_setting type, s32 dbm);
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
+static int wl_cfg80211_get_tx_power(struct wiphy *wiphy,
+ struct wireless_dev *wdev, int *dbm);
+#else
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm);
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
static s32 wl_cfg80211_config_default_key(struct wiphy *wiphy,
@@ -570,10 +583,18 @@
}
static s32
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)
+wl_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
+#else
wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_scan_request *request)
+#endif
{
s32 err = 0;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)
+ struct wl_priv *wl = wiphy_to_wl(wiphy);
+ struct net_device *ndev = wl_to_ndev(wl);
+#endif
CHECK_SYS_UP();
err = __wl_cfg80211_scan(wiphy, ndev, request, NULL);
@@ -742,7 +763,11 @@
else
memset(&join_params.params.bssid, 0, ETHER_ADDR_LEN);
- wl_ch_to_chanspec(params->channel, &join_params, &join_params_size);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
+ wl_ch_to_chanspec(params->channel, &join_params, &join_params_size);
+#else
+ wl_ch_to_chanspec(params->chandef.chan, &join_params, &join_params_size);
+#endif
err = wl_dev_ioctl(dev, WLC_SET_SSID, &join_params, join_params_size);
if (err) {
@@ -1099,7 +1124,12 @@
return err;
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
+static int
+wl_cfg80211_set_tx_power(struct wiphy *wiphy,
+ struct wireless_dev *wdev,
+ enum nl80211_tx_power_setting type, int dbm)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
static s32
wl_cfg80211_set_tx_power(struct wiphy *wiphy, enum nl80211_tx_power_setting type, s32 dbm)
#else
@@ -1155,16 +1185,29 @@
}
wl->conf->tx_power = dbm;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
return err;
+#else
+ return (int) err;
+#endif
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
+static int wl_cfg80211_get_tx_power(struct wiphy *wiphy,
+ struct wireless_dev *wdev, int *dbm)
+#else
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm)
+#endif
{
struct wl_priv *wl = wiphy_to_wl(wiphy);
struct net_device *ndev = wl_to_ndev(wl);
s32 txpwrdbm;
u8 result;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
s32 err = 0;
+#else
+ int err = 0;
+#endif
CHECK_SYS_UP();
err = wl_dev_intvar_get(ndev, "qtxpower", &txpwrdbm);
@@ -1173,8 +1216,11 @@
return err;
}
result = (u8) (txpwrdbm & ~WL_TXPWR_OVERRIDE);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
*dbm = (s32) bcm_qdbm_to_mw(result);
-
+#else
+ *dbm = (int) bcm_qdbm_to_mw(result);
+#endif
return err;
}
@@ -1466,7 +1512,10 @@
scb_val.val = 0;
err = wl_dev_ioctl(dev, WLC_GET_RSSI, &scb_val, sizeof(scb_val_t));
if (err) {
- WL_ERR(("Could not get rssi (%d)\n", err));
+ if (err != -EINVAL) {
+ // Don't fill syslog with EINVAL error
+ WL_ERR(("Could not get rssi (%d)\n", err));
+ }
return err;
}
rssi = dtoh32(scb_val.val);
@@ -1811,7 +1860,7 @@
notif_bss_info->frame_len = offsetof(struct ieee80211_mgmt, u.beacon.variable) +
wl_get_ielen(wl);
freq = ieee80211_channel_to_frequency(notif_bss_info->channel
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ
#endif
);
@@ -2042,9 +2091,14 @@
struct bcm_tlv *tim;
u16 beacon_interval;
s32 dtim_period;
- size_t ie_len;
- u8 *ie;
s32 err = 0;
+ size_t ie_len;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
+ u8 *ie;
+#else
+ const u8 *ie;
+ const struct cfg80211_bss_ies *ies;
+#endif
ssid = &wl->profile->ssid;
bss = cfg80211_get_bss(wl_to_wiphy(wl), NULL, (s8 *)&wl->bssid,
@@ -2074,10 +2128,25 @@
beacon_interval = cpu_to_le16(bi->beacon_period);
} else {
WL_DBG(("Found the AP in the list - BSSID %pM\n", bss->bssid));
- ie = bss->information_elements;
- ie_len = bss->len_information_elements;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
+ ie = bss->information_elements;
+ ie_len = bss->len_information_elements;
+#else
+ ies = (const struct cfg80211_bss_ies*)rcu_dereference(bss->ies);
+ if (!ies) {
+ /* This should never happen */
+ err = -EIO;
+ goto update_bss_info_out;
+ }
+ ie = ies->data;
+ ie_len = (size_t)(ies->len);
+#endif
beacon_interval = bss->beacon_interval;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)
cfg80211_put_bss(bss);
+#else
+ cfg80211_put_bss(wl_to_wiphy(wl), bss);
+#endif
}
tim = bcm_parse_tlvs(ie, ie_len, WLAN_EID_TIM);
--- a/src/wl/sys/wl_iw.h 2011-10-22 18:55:54.000000000 +0200
+++ b/src/wl/sys/wl_iw.h 2013-07-04 13:15:20.617786877 +0200
@@ -16,6 +16,7 @@
#define _wl_iw_h_
#include <linux/wireless.h>
+#include <linux/semaphore.h>
#include <typedefs.h>
#include <proto/ethernet.h>
--- a/src/wl/sys/wl_linux.c 2013-07-04 13:06:00.721123699 +0200
+++ b/src/wl/sys/wl_linux.c 2013-07-04 13:23:17.847783903 +0200
@@ -40,7 +40,9 @@
#include <linux/pci_ids.h>
#define WLC_MAXBSSCFG 1
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)
#include <asm/system.h>
+#endif
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/pgtable.h>
@@ -387,7 +389,11 @@
#endif
.ndo_get_stats = wl_get_stats,
.ndo_set_mac_address = wl_set_mac_address,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
+ .ndo_set_rx_mode = wl_set_multicast_list,
+#else
.ndo_set_multicast_list = wl_set_multicast_list,
+#endif
.ndo_do_ioctl = wl_ioctl
};
@@ -845,7 +851,11 @@
pci_set_drvdata(pdev, NULL);
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)
static struct pci_driver wl_pci_driver = {
+#else
+static struct pci_driver wl_pci_driver __refdata = {
+#endif
name: "wl",
probe: wl_pci_probe,
suspend: wl_suspend,
@@ -1581,11 +1591,7 @@
}
WL_LOCK(wl);
- if (!capable(CAP_NET_ADMIN)) {
- bcmerror = BCME_EPERM;
- } else {
- bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
- }
+ bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
WL_UNLOCK(wl);
done1:
@@ -2962,7 +2968,7 @@
void
wl_tkip_printstats(wl_info_t *wl, bool group_key)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
char debug_buf[512];
int idx;
if (wl->tkipmodops) {
@@ -3121,6 +3127,7 @@
return 0;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
static int
wl_proc_read(char *buffer, char **start, off_t offset, int length, int *eof, void *data)
{
@@ -3175,18 +3182,89 @@
return length;
}
+#else
+
+static int
+wl_proc_read(struct seq_file *seq, void *offset)
+{
+ wl_info_t * wl = (wl_info_t *)seq->private;
+ int bcmerror, to_user;
+
+ WL_LOCK(wl);
+ bcmerror = wlc_ioctl(wl->wlc, WLC_GET_MONITOR, &to_user, sizeof(int), NULL);
+ WL_UNLOCK(wl);
+
+ seq_printf(seq, "%d\n", to_user);
+ return bcmerror;
+}
+
+static ssize_t wl_proc_write(struct file *file, const char __user *buff,
+ size_t length, loff_t *ppos)
+{
+ struct seq_file *seq = file->private_data;
+ wl_info_t * wl = (wl_info_t *)seq->private;
+ int bcmerror, from_user = 0;
+
+ if (length != 1) {
+ WL_ERROR(("%s: Invalid data length\n", __FUNCTION__));
+ return -EIO;
+ }
+
+ if (copy_from_user(&from_user, buff, 1)) {
+ WL_ERROR(("%s: copy from user failed\n", __FUNCTION__));
+ return -EFAULT;
+ }
+
+ if (from_user >= 0x30)
+ from_user -= 0x30;
+
+ WL_LOCK(wl);
+ bcmerror = wlc_ioctl(wl->wlc, WLC_SET_MONITOR, &from_user, sizeof(int), NULL);
+ WL_UNLOCK(wl);
+
+ if (bcmerror < 0) {
+ WL_ERROR(("%s: SET_MONITOR failed with %d\n", __FUNCTION__, bcmerror));
+ return -EIO;
+ }
+ *ppos += length;
+ return length;
+}
+
+static int wl_proc_open(struct inode *inode, struct file *file)
+{
+ return single_open(file, wl_proc_read, PDE_DATA(inode));
+}
+
+static const struct file_operations wl_proc_fops = {
+ .owner = THIS_MODULE,
+ .open = wl_proc_open,
+ .read = seq_read,
+ .write = wl_proc_write,
+ .llseek = seq_lseek,
+ .release = single_release,
+};
+#endif
+
static int
wl_reg_proc_entry(wl_info_t *wl)
{
char tmp[32];
sprintf(tmp, "%s%d", HYBRID_PROC, wl->pub->unit);
- if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
+ wl->proc_entry = create_proc_entry(tmp, 0644, NULL);
+ if (wl->proc_entry) {
+ wl->proc_entry->read_proc = wl_proc_read;
+ wl->proc_entry->write_proc = wl_proc_write;
+ wl->proc_entry->data = wl;
+ }
+#else
+ wl->proc_entry = proc_create_data(tmp, 0644, NULL, &wl_proc_fops, wl);
+#endif
+ if (!wl->proc_entry) {
WL_ERROR(("%s: create_proc_entry %s failed\n", __FUNCTION__, tmp));
ASSERT(0);
return -1;
}
- wl->proc_entry->read_proc = wl_proc_read;
- wl->proc_entry->write_proc = wl_proc_write;
- wl->proc_entry->data = wl;
return 0;
}

View File

@ -1,5 +0,0 @@
blacklist b43
blacklist ssb
blacklist bcma
blacklist brcmsmac
blacklist brcmfmac

View File

@ -1,39 +0,0 @@
# Contributor: t3ddy <t3ddy1988 "at" gmail {dot} com>
# Contributor: k3vin <kev "at" k3v {dot} in>
pkgname=colibri
pkgver=0.3.0
pkgrel=1
pkgdesc="Colibri provides an alternative to KDE4 Plasma notifications."
arch=('i686' 'x86_64')
url="http://kde-apps.org/content/show.php/Colibri?content=117147"
provides=('notification-daemon')
license=('GPL')
depends=('kdebase-workspace>=4.4')
makedepends=('gcc' 'cmake' 'automoc4')
install=colibri.install
source=(http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.bz2
fix-line.patch)
md5sums=('6b39ca00645d8557886577e1366deecd'
'ed9f744d6aa4033797914edc82846452')
prepare() {
cd "${srcdir}"
patch -p0 -i "${srcdir}/fix-line.patch"
if [[ -d ${srcdir}/build ]]; then
rm -rf "${srcdir}/build"
fi
mkdir "${srcdir}/build"
}
build() {
cd "${srcdir}/build"
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` "../${pkgname}-${pkgver}"
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install
}

View File

@ -1,13 +0,0 @@
post_install() {
echo ""
echo "Colibri notifications works with 4.4 and higher"
echo ""
echo "Enabling Colibri notifications can be a bit tricky:
- Right-click on the systemtray applet
- Select \"System Tray Settings\"
- Uncheck the \"Application notifications\" box"
}
post_upgrade() {
post_install $1
}

View File

@ -1,12 +0,0 @@
diff -ruN colibri-0.3.0.orig/app/notificationwidget.cpp colibri-0.3.0/app/notificationwidget.cpp
--- colibri-0.3.0.orig/app/notificationwidget.cpp 2013-05-14 19:30:28.000000000 +0400
+++ colibri-0.3.0/app/notificationwidget.cpp 2014-01-24 02:35:26.653473727 +0400
@@ -311,7 +311,7 @@
text = "<b>" + mSummary + "</b>";
}
if (!mBody.isEmpty()) {
- text += mBody;
+ text += mBody.replace(QString("\n"), QString("<br>"));
}
mTextLabel->setText(text);
mTextLabel->resize(mTextLabel->preferredSize());

View File

@ -1,48 +0,0 @@
# $Id: PKGBUILD 57440 2011-10-27 20:16:15Z lcarlier $
# Maintainer: Eduardo Martins Lopes "duca" <edumlopes@gmail.com>
# Maintainer: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Ricardo <rikardo.horo@gmail.com>
# Contributor: Hector <hsearaDOTatDOTgmailDOTcom>
pkgname=gromacs4
_pkgname=gromacs
pkgver=4.5.5
pkgrel=1
pkgdesc='A versatile package to perform molecular dynamics. Old version'
url='http://www.gromacs.org/'
license=("GPL")
arch=('i686' 'x86_64')
depends=('fftw' 'lesstif' 'perl' 'libxml2' 'libsm' 'libx11')
makedepends=('cmake')
options=('!libtool')
source=(ftp://ftp.gromacs.org/pub/gromacs/${_pkgname}-${pkgver}.tar.gz)
md5sums=('6a87e7cdfb25d81afa9fea073eb28468')
build() {
mkdir -p "${srcdir}/double"
msg2 "Building the doulbe precision files"
cd "${srcdir}/double"
cmake -DCMAKE_PREFIX=/opt/gromacs_old/ -DCMAKE_INSTALL_PREFIX=/opt/gromacs_old/ -DGMX_THREADS=ON -DGMX_SHARED_LIBS=ON -DGMX_DOUBLE=ON -DGMX_X11=ON -DGMX_DEFAULT_SUFFIX=OFF -DGMX_LIBS_SUFFIX=_4.5 -DGMX_BINARY_SUFFIX=_4.5 ../${_pkgname}-${pkgver}/
make -j5
}
package() {
mkdir -p "${pkgdir}/etc/profile.d/"
mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
# Cleaning up, kept the csh completion at default location
msg2 "Making the double precision executables"
cd "${srcdir}/double"
make DESTDIR="${pkgdir}" install
# installing completions in correct location and environment setup script
install -D -m755 "${srcdir}/${_pkgname}-${pkgver}/scripts/completion.bash" "${pkgdir}/usr/share/bash-completion/completions/gromacs_old"
mv "${pkgdir}/opt/gromacs_old/bin/GMXRC.bash" "${pkgdir}/etc/profile.d/GMXRC_OLD.bash"
mv "${pkgdir}/opt/gromacs_old/bin/GMXRC.zsh" "${pkgdir}/etc/profile.d/GMXRC_OLD.zsh"
mv "${pkgdir}/opt/gromacs_old/bin/GMXRC.csh" "${pkgdir}/etc/profile.d/GMXRC_OLD.csh"
sed "s:/opt/gromacs_old/bin:/etc/profile.d:g" "${pkgdir}/opt/gromacs_old/bin/GMXRC" > "${pkgdir}/etc/profile.d/GMXRC"
sed -e "s/GMXRC/GMXRC_OLD/g" "${pkgdir}/etc/profile.d/GMXRC" > "${pkgdir}/etc/profile.d/GMXRC_OLD"
chmod 755 "${pkgdir}/etc/profile.d/GMXRC_OLD"
rm -f "${pkgdir}/etc/profile.d/GMXRC"
rm -f "${pkgdir}/opt/gromacs_old/bin/completion.*"
rm -f "${pkgdir}/opt/gromacs_old/bin/GMXRC"
}

View File

@ -3,7 +3,7 @@
pkgname=kwin-scripts-tiling
_pkgname=tiling
pkgver=1.6.2
pkgver=1.6.3
pkgrel=1
pkgdesc="Tiling script for kwin"
arch=('any')
@ -11,7 +11,7 @@ url="http://kde-look.org/content/show.php?content=161151"
license=('GPL')
depends=('kdebase-workspace')
source=(http://kde-look.org/CONTENT/content-files/161151-${_pkgname}.kwinscript)
md5sums=('51e400e5eb98ef5cfb35e14954f0ee68')
md5sums=('8fb61e80a9600726a49fe4ec17d168d0')
package() {
install -d "${pkgdir}/usr/share/apps/kwin/scripts/kwin-script-tiling/"

View File

@ -1,48 +0,0 @@
# $Id: PKGBUILD 104846 2014-01-27 14:17:21Z speps $
# Maintainer: speps <speps at aur dot archlinux dot org>
pkgname=qupzilla
pkgver=1.6.3
pkgrel=1
pkgdesc="Cross-platform QtWebKit browser"
arch=(i686 x86_64)
url="http://www.qupzilla.com/"
license=('GPL3')
makedepends=('qtwebkit' 'hunspell')
optdepends=('bash-completion: bash completion support')
install="$pkgbase.install"
source=("$pkgbase-$pkgver.tar.gz::https://github.com/QupZilla/qupzilla/archive/v$pkgver.tar.gz"
"${srcdir}/fix-color.patch")
noextract=("$pkgbase-$pkgver.tar.gz")
md5sums=('SKIP'
'b4f5f825c3763bc42c2df1af2703ac07')
prepare() {
# extract
mkdir -p qt4
bsdtar --strip-components 1 -zxf $pkgbase-$pkgver.tar.gz -C qt4
patch -p0 -i "${srcdir}/fix-color.patch"
# configure
export USE_WEBGL=true \
QUPZILLA_PREFIX=/usr/
}
build() {
cd qt4
qmake-qt4
make
}
package_qupzilla() {
depends=('qtwebkit' 'hunspell')
cd qt4
make INSTALL_ROOT="$pkgdir/" install
# zsh completion
install -Dm644 linux/completion/_$pkgbase \
"$pkgdir/usr/share/zsh/site-functions/_$pkgbase"
}
# vim:set ts=2 sw=2 et:

View File

@ -1,12 +0,0 @@
diff -ruN qt4.orig/src/plugins/AccessKeysNavigation/akn_handler.cpp qt4/src/plugins/AccessKeysNavigation/akn_handler.cpp
--- qt4.orig/src/plugins/AccessKeysNavigation/akn_handler.cpp 2014-01-29 05:31:09.000000000 +0400
+++ qt4/src/plugins/AccessKeysNavigation/akn_handler.cpp 2014-01-29 05:49:21.634522803 +0400
@@ -351,7 +351,7 @@
void AKN_Handler::makeAccessKeyLabel(const QChar &accessKey, const QWebElement &element)
{
QLabel* label = new QLabel(m_view.data());
- label->setText(QString(QLatin1String("<b>%1</b>")).arg(accessKey));
+ label->setText(QString(QLatin1String("<span style=\"color:#111111; font-weight:600;\">%1</span>")).arg(accessKey));
QPalette p = QToolTip::palette();
QColor color = QColor(220, 243, 253);

View File

@ -1,12 +0,0 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

View File

@ -4,7 +4,7 @@
# This PKGBUILD is maintained at https://github.com/matt-h/aur-pkgbuilds/tree/master/voxforge-am-julius
pkgname=voxforge-am-julius-nightly
pkgver=20140108
pkgver=20140604
pkgrel=1
pkgdesc="Acoustic model information for use with Julius voice recognition software"
arch=('any')