You are not logged in.
I modified the PKGBUILD file for 3.9.0 and makepkg was successfull.
But I don't have the directory structure synchronized right. The "$srcdir" seems to default to pkg.
I read the PKGBUILD page, but the "$srcdir" is not explained. I looked at the environment and it's not defined there. I looked at "/etc/makepkg.conf" and it's not defined there. So where is this defined?
Last edited by ThinkFast (2014-01-30 02:09:18)
Offline
Post your PKGBUILD. The one I see in the repos is already for bfgminer 3.9.0-1.
$srcdir should be src and $pkgdir should be pkg.
Last edited by karol (2014-01-30 01:37:25)
Offline
[bitcoin@alarm-01 antminer]$ cat PKGBUILD
# $Id$
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=bfgminer
pkgver=3.10.0
pkgrel=1
pkgdesc="Bitcoin miner featuring overclocking, monitoring, fan speed control and remote management. For FPGA/GPU/CPU Bitcoin mining."
arch=()
depends=('curl' 'jansson' 'libevent' 'libmicrohttpd' 'libusbx' 'lm_sensors')
makedepends=('uthash' 'yasm')
optdepends=('opencl-nvidia: OpenCL implementation for NVIDIA')
url='https://bitcointalk.org/index.php?topic=168174.0'
license=('GPL3')
source=(http://luke.dashjr.org/programs/bitcoin/files/$pkgname/$pkgver/$pkgname-$pkgver.tbz2
remove-dangerous-rpath.patch)
sha256sums=('12458aed84abc4a953532fe0645772492701e5d627f56f62d382aa0f458a10d5'
'd26d07ca23ae25798c4db37cfda1a6a76f22d06e73efab1ddf62b3e1a7eef04c')
prepare() {
cd "$srcdir"/$pkgname-$pkgver
patch -p0 < "${srcdir}"/remove-dangerous-rpath.patch
NOSUBMODULES=1 ./autogen.sh
}
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--disable-avalon \
--disable-bigpic \
--disable-littlefury \
--disable-nanofury \
--disable-hashbuster \
--disable-hashbuster2 \
--disable-bitforce \
--disable-klondike \
--disable-modminer \
--disable-x6500 \
--disable-ztex \
--with-udevrulesdir=/usr/lib/udev/rules.d
make
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make DESTDIR="$pkgdir" install
}Offline
Ok. I see the correlation.
Then what is the procedure to install the files onto my system? Do I use pacman?
Offline
Read the wiki and the man page for makepkg.
Offline
Read the wiki and the man page for makepkg.
Ok. I'm reading a page called "Creating Packages". Thanks.
When I finish, I will mark thread Solved.
Offline
Is there a way to setup a local repository? Or can you suggest a better way? Thanks.
Offline
Try first to search the forum and the wiki when looking for some tips or answers. I admit that the wiki search isn't perfect, but there's some explanation as to what srcdir means in the article you have found: https://wiki.archlinux.org/index.php/Cr … a_PKGBUILD
Offline
Is there a way to setup a local repository? Or can you suggest a better way? Thanks.
What do you mean by local repository?
What do you want to do?
Offline
Is there a way to setup a local repository? Or can you suggest a better way? Thanks.
Nevermind. Found a couple of threads on Google.
Offline
ThinkFast wrote:Is there a way to setup a local repository? Or can you suggest a better way? Thanks.
What do you mean by local repository?
What do you want to do?
I'm not the original maintainer and I don't want to step on toes. So I thought I could tell pacman to look locally on my machine first.
Offline
karol wrote:ThinkFast wrote:Is there a way to setup a local repository? Or can you suggest a better way? Thanks.
What do you mean by local repository?
What do you want to do?I'm not the original maintainer and I don't want to step on toes.
By doing what? I'm sorry, but I don't quite follow.
So I thought I could tell pacman to look locally on my machine first.
Look for what? What did you change? Just the package version? You can use ABS for that.
If you want to use a local version of the source, you can do that too.
Offline
Ok. I will do some more reading. Sorry, I'm new to this. Thanks!
Offline
It's OK to ask questions when you're stuck, but tell us exactly what you want. It's not clear to me what do you mean by e.g. "I thought I could tell pacman to look locally on my machine first."
Offline
ThinkFast wrote:karol wrote:What do you mean by local repository?
What do you want to do?I'm not the original maintainer and I don't want to step on toes.
By doing what? I'm sorry, but I don't quite follow.
ThinkFast wrote:So I thought I could tell pacman to look locally on my machine first.
Look for what? What did you change? Just the package version? You can use ABS for that.
If you want to use a local version of the source, you can do that too.
I'm also changing the bfgminer build options.
I will try to be more specific next time.
Last edited by ThinkFast (2014-01-30 02:15:37)
Offline